Javascript, movieclip color change?
- April 15, 2020
- 1 reply
- 319 views
So I am attempting to change the color of a movie clip fill I have made, I saw a post (https://community.adobe.com/t5/animate/changing-color-of-a-movieclip-with-javascript/m-p/9497833?page=1#M174087) and followed it however the .shape .graphic and _fill.style dont work I switched it out with _fillcolor however that doesnt seem to work either (No errors in console it just doesnt do anything)
Context: I drew out the shapes using the line tool and the filled them in to separate into movie clips using the paint bucket tool. Fill_Color is a variable that is set to a hex color code I specified earlier in the code. IE: "#FFFF00"
Code:
this.Page1.Turtle.Fill_Turtle_Bandana.addEventListener("click", Color_Bandana.bind(this));
function Color_Bandana()
{
this.Page1.Turtle.Fill_Turtle_Bandana._fillcolor = Fill_Color;
}
If you want to see the full set of code I made for my swatches section I have attached a .txt file with that section.