Data Model Flex


    
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
    creationComplete="initApp()" height="500">
     
         
        public function initApp():void { 
            myTree.setStyle("depthColors",[0xFFCC33, 0xFFCC99, 0xCC9900]); 
            myTree.setStyle("alternatingItemColors",["red", "green"]); 
        } 
      
    

    
        
            
                
                    
                    
                    
                
                
                    
                    
                
                
                
            
        
    

    
        
            
        

                    dataProvider="{treeData}" />
                    dataProvider="{treeData}" depthColors="[0xFFCC33, 0xFFCC99, 0xCC9900]"
            alternatingItemColors="['red', 'green']" />