I am trying to define my Flex 4 Skins via CSS, but I am not creating my own skin. That's what I'm doing:
In my application, I import my css and define the style name in my button:
<fx:Style source="styles.css"/> <s:Button label="Button" styleName="circle"/>
Here is my CSS:
@namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; s|Button.circle { skinClass: ClassReference("skins.buttons.CircleButton"); }
My understanding is that my button should be provided to her by skinClass via CSS, but it does not work. If I define skinClass directly as shown below, it works fine:
<s:Button label="Button" skinClass="skins.buttons.CircleButton"/>
Any help would be appreciated.
source share