A toggle button with an image for up, down, over, and disabled states
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Button label="Image Button"
toggle="true"
color="0xFFFFAA"
textRollOverColor="0xAAAA55"
textSelectedColor="0xFFFF00"
upSkin="@Embed(source='logo.jpg')"
overSkin="@Embed(source='logo.jpg')"
downSkin="@Embed(source='logo.jpg')"
disabledSkin="@Embed(source='logo.jpg')"
icon="@Embed(source='logo.jpg')"/>
</mx:Application>
Related examples in the same category