Flex Button CSS skinning

Posted by dta on Stack Overflow See other posts from Stack Overflow or by dta
Published on 2010-04-13T11:31:50Z Indexed on 2010/04/13 11:33 UTC
Read the original article Hit count: 385

Filed under:
|

I have a CSS file containing the following definition :

.Tab{
    up-skin:Embed(skinClass='XUpSkin');
    over-skin:Embed(skinClass='XOverSkin');
    disabled-skin:Embed(skinClass='XDisabledSkin');
}

And a Flex file :

<mx:Button id="b1" style="Tab"/>

Now, I want to use the disabled-skin defined in the CSS, as the upSkin of b1.
So something like

b1.setStyle("upSkin","Tab.disabled-skin");

But I am struggling with the exact syntax of the second argument for setStyle.
What should I use for the second argument for setStyle method?

© Stack Overflow or respective owner

Related posts about flex

Related posts about skinning