Data Binding Using Curly Braces Syntax
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="middle" initialize="initComp();"> <mx:Script> import mx.collections.* private var STATES_ARRAY:Array=[{label:"AR", data:"Arkansas"}, {label:"OH", data:"Ohio"}, {label:"TX", data:"Texas"}]; [Bindable] public var statesAC:ArrayCollection; private function initComp():void { statesAC = new ArrayCollection(STATES_ARRAY); } </mx:Script> <mx:Panel title="Using the Curly Braces for Data Binding" paddingLeft="10" horizontalAlign="center"> <mx:ComboBox dataProvider="{statesAC}" /> </mx:Panel> </mx:Application>