Data Model Flex


    
    
        
            import mx.collections.SortField;
            import mx.collections.Sort;
            import mx.collections.IViewCursor;
            import mx.collections.CursorBookmark;
            import mx.collections.ArrayCollection;
            [Bindable]
            private var coll:ArrayCollection;
            [Bindable]
            private var cursor:IViewCursor;
            private function init():void {
                coll = new ArrayCollection([{city:"A", state:"C", region:"E"},  
                                            {city:"B", state:"D", region:"F"}]);
                cursor = coll.createCursor();
            }