Definition:
The CheckBox control is a commonly used graphical control .
It can have one of two disabled states, checked or unchecked.
Flex clips the label of a CheckBox control to fit the boundaries of the control.
It changes the control from one state to another.
The <mx:CheckBox> tag to define a CheckBox control in MXML.
Source Code:
<?xml version=”1.0″?>
<!– controls\checkbox\CBSelected.mxml –>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”>
<mx:VBox>
<mx:CheckBox width=”100″ label=”Employee?” selected=”true”/>
<mx:CheckBox width=”120″ label=” emp.name?” selected=”false”/>
</mx:VBox>
</mx:Application>
<!– controls\checkbox\CBSelected.mxml –>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”>
<mx:VBox>
<mx:CheckBox width=”100″ label=”Employee?” selected=”true”/>
<mx:CheckBox width=”120″ label=” emp.name?” selected=”false”/>
</mx:VBox>
</mx:Application>
Thanks with Regards,
Pandimalar A

Advertisement