Data Model Flex


    initialize="initData()">
    
        
        import mx.collections.*;
        [Bindable]
        public var stateArray:ArrayCollection;
        public function initData():void {
            stateArray=new ArrayCollection(
                [{label:"AL", data:"aL"},
                 {label:"AK", data:"AK"},
                 {label:"AR", data:"AR"}]);
        }