1 Reply Latest reply on Nov 8, 2010 12:37 AM by hidarikani

    How to set skinClass in ActionScript


      Hallo, i have a little problem. I don't know how to set a skinClass for my created dinamically in actionScript. Inline i can set it in thi way:


      <s:Button id="myButton"  "skinClass="skins.mySkin"/>


      But how can i do it in actionScript??.. I am creating new buttons dinamically:


      var myButton:Button = new Button();


      but i can't set the skin through myButton.skinClass. There is not such a property in my Button.


      How can i do??


      Thx for all