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
myButton.skinClass doesn't work because it's not a property. It's a style.
Set styles by using the setStyle() method: