Skip to main content
Participant
May 19, 2022
질문

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

  • May 19, 2022
  • 1 답변
  • 93 조회

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?

    이 주제는 답변이 닫혔습니다.

    1 답변

    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)";