Apply the custom style to the second button only : Button Style « Components « Flex
- Flex
- Components
- Button Style
Apply the custom style to the second button only

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Style>
.myButtonStyle {
overSkin: Embed("a.gif");
upSkin: Embed("b.gif");
downSkin:Embed("a.gif");
}
</mx:Style>
<mx:Button id="b1" label="Click Me" />
<mx:Button id="b2" label="Click Me" styleName="myButtonStyle" />
</mx:Application>
Related examples in the same category