Skip to main content
Participant
May 19, 2022
Question

Can't change fill color in shape nested in movie clip

  • May 19, 2022
  • 1 reply
  • 94 views

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?

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    May 19, 2022

    assuming the nested object is this.myMC.mySymbol.shape_1, use

     

    this.myMC.mySymbol.shape_1.shape.graphics._fill.style = "rgb(20,22,36)";