Mark a Button as Toggle. : ToggleButton « Components « Flex






Mark a Button as Toggle.

Mark a Button as Toggle.
       
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal">

  <mx:Button id="toggleButton1" label="Button selected: {toggleButton1.selected}" toggle="true"/>
  <mx:Button id="toggleButton2" label="Button selected: {toggleButton2.selected}" toggle="true"/>
  
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.A toggle button with an image for up, down, over, and disabled statesA toggle button with an image for up, down, over, and disabled states
2.Toggle Button color between blue and the defaultToggle Button color between blue and the default
3.Toggle button font size between null and 8Toggle button font size between null and 8
4.Use ToggleBarButton to toggle two forms in ViewStackUse ToggleBarButton to toggle two forms in ViewStack
5.Toggle style buttonToggle style button
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