Mega Code Archive

 
Categories / Flex / Style
 

Use graphical skins for the up, over, and down states of the Button control

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Style>     @namespace mx "http://www.adobe.com/2006/mxml";     mx|Button {         overSkin: Embed("a.gif");         upSkin: Embed("b.gif");         downSkin: Embed("a.gif");     }     </mx:Style>     <mx:Button id="b1" label="Click Me"/> </mx:Application>