Search Flex Components Free

Custom Search

December 20, 2007

Flex Control CheckBox Code Sample

Flex Control CheckBox code Sample:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="" backgroundAlpha="0" horizontalAlign="left">
<mx:Script> <![CDATA[
import mx.controls.Alert;
private function checkAnswer():void { if (cbWS.selected && cbCSS.selected && cbLib.selected && cbStates.selected)'Correct answer', 'Result'); else'Incomplete answer', 'Result'); }
]]> </mx:Script>
<mx:Label text="Which of the following features are supported in Flex?"/> <mx:CheckBox id="cbWS" label="Web services connectivity"/> <mx:CheckBox id="cbStates" label="States"/> <mx:CheckBox id="cbCSS" label="Cascading Style Sheets"/> <mx:CheckBox id="cbLib" label="Rich library of user interface components"/>
<mx:Button label="Check Answer" click="checkAnswer()"/>

Related Flex Tutorials