Data Model Flex



    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx" initialize="initData();">
    
         
        import mx.collections.*; 
        [Bindable] 
        public var stateArray:ArrayList; 
        public function initData():void { 
        stateArray=new ArrayList( 
             [{label:"AL", data:"Montgomery"}, 
              {label:"AK", data:"Juneau"}, 
              {label:"AR", data:"Little Rock"}]); 
        }