A toggle button with an image for up, down, over, and disabled states : ToggleButton « Components « Flex






A toggle button with an image for up, down, over, and disabled states

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

1.Toggle Button color between blue and the defaultToggle Button color between blue and the default
2.Toggle button font size between null and 8Toggle button font size between null and 8
3.Use ToggleBarButton to toggle two forms in ViewStackUse ToggleBarButton to toggle two forms in ViewStack
4.Toggle style buttonToggle style button
5.Mark a Button as Toggle.Mark a Button as Toggle.
6.Toggle data series when the user clicks on the Change Series button:Toggle data series when the user clicks on the Change Series button:
7.Toggle color of the Button control between blue and the default by using this techniqueToggle color of the Button control between blue and the default by using this technique