Data Model Flex



    
        
        import mx.collections.ArrayCollection;
        [Bindable]
        public var myAC:ArrayCollection = new ArrayCollection([
        {
            name:'Friends', children:[
                {name:'A', email:'a@domain.com'},
                {name:'B', email:'b@domain.com'},
                {name:'C', email:'c@domain.com'}]},
            
            {name:'Family', children:[
                {name:'Z', email:'z@domain.com'},
                {name:'S', email:'s@domain.com'}]
        }]);