1 Reply Latest reply on Oct 31, 2017 10:58 AM by kglad

    change symbol background color

    charlesn79540358 Level 1



      Can you set the properties of a symbol by doing this hot_btn2.backgroundColor ="#FF9900"?


      or are symbols created using a static string?


      this.shape_1.graphics.f("#00FFFF").s().p("AhSBTQgjgiAAgxQAAgvAjgjQAigjAwABQAwgBAjAjQAjAjgB AvQABAxgjAiQgjAjgwAAQgwAAgigjg");


      It would be nice if I could the name of the symbol.


      Thank you,



        • 1. Re: change symbol background color
          kglad Adobe Community Professional & MVP

          it's not efficient but you can use the filters property of you symbol to assign a color filter:


          this.hot_btn2.filters=[new createjs.ColorFilter(0,0,0,1,0,0,255,0)];



          better would be to create a movieclip button and use multiple frames on its timeline to display the various colors you want and use gotoAndStop in your code to control which frame/color is displayed.