make a shape, turn it into a clip, add to it this code:
this.activeFrame._children[0].fillColor = "red";
Replace "red"
with any other color or an rgb value (ex: "rgb(255,0,0)"
)
It won’t have the nice “fill effect” animation you made in your project, but it sure is the easiest way to change the color of a shape through code.
To explain the code a bit more:
this
-->
refers to the clip that the code is written in
this.activeFrame -->
refers to the active (current) frame of the clip
this.activeFrame._children -->
refers to all the objects inside of the current frame
this.activeFrame._children[0] -->
refers to the first object of all the objects inside the frame
this.activeFrame._children[0].fillColor -->
refers to the fill color of that object
And hopefully you understand the rest.
I apologize for the late reply since this post got a bit buried with my bookmarks.
Let me know if you have any questions