Data Model Flex



    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    
        
    

    
         
        public function labelTrace():void { 
            for (var i:int = 0; i < nameLabel.length; i++) 
                for (var j:int = 0; j < nameLabel[i].length; j++) 
                    trace(nameLabel[i][j].text); 
        } 
      
    

    
        
            
                Red
                Yellow
                Blue
            

        
        
            
                
                    Name
                    Price
                    Free Shipping?
                

                
                    Whirlygig
                    5
                    false
                

                
                    Tilty Thingy
                    15
                    true
                

                
                    Really Big Blocks
                    25
                    true
                

            

        
        
        
    

    
    
        
            
                                    text="{r2.currentItem} {r.currentItem.name}:${r.currentItem.price}"
                    width="250" />