Search Flex Components Free

Custom Search

December 20, 2007

Flex Control List Source Code Sample

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml" backgroundAlpha="0">
<mx:Model id="statesModel" source="../assets/states.xml"/>
<mx:Script> [Bindable] public var selectedItem:Object; </mx:Script>
<mx:HBox width="100%">
<mx:List id="source" width="250" dataProvider="{statesModel.states.state}" change="this.selectedItem=List(event.target).selectedItem"/>
<mx:VBox width="200"> <mx:Label text="{selectedItem.label}"/> <mx:Label text="{selectedItem.data}"/> </mx:VBox>
</mx:HBox>
</mx:Application>

Related Flex Tutorials