Copy link to clipboard
Copied
I'm trying to change the fill color of shape/symbol nested within a movieclip but I can't get the code referenced in in similar post on this forum to work.
this.myMC.mySymbol.shape_1.graphics._fill.style = "rgb(20,22,36)";0);
Throws an error. What am I doing wrong. What would be the proper way to change the fill color of a symbol/button or movieclip?
Copy link to clipboard
Copied
assuming the nested object is this.myMC.mySymbol.shape_1, use
this.myMC.mySymbol.shape_1.shape.graphics._fill.style = "rgb(20,22,36)";
Find more inspiration, events, and resources on the new Adobe Community
Explore Now