Mega Code Archive

 
Categories / Flex / Style
 

Set skins for a Button control by using the overSkin, upSkin, and downSkin style properties

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Style>     .myCustomButton {         overSkin:Embed(source="a.gif");         upSkin:Embed(source="a.gif");         downSkin:Embed(source="a.gif");     }     </mx:Style>     <mx:Button label="Icon Button Style Def" styleName="myCustomButton"/> </mx:Application>