Grid Flex


    
    xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">
     
         
        import mx.collections.ArrayCollection; 
        // Variable in the Application scope. 
        [Bindable] 
        public var localVar:String="Application localVar"; 
        // Data includes URL to album cover. 
        [Bindable] 
        private var initDG:ArrayCollection = new ArrayCollection([ 
            { Artist:'Pavement', Album:'Slanted and Enchanted',Price:11.99, Cover:'a.jpg'}, 
            { Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Cover:'a.jpg'} 
        ]); 
      
    

            variableRowHeight="true">
        
            
            
            
                
                    
                        
                             
                                 
                                // Variable in the renderer scope. 
                                [Bindable] 
                                public var localVar:String="Renderer localVar"; 
                              
                            

                                                            text="{data.Album}" />
                            
                            
                                                            text="{'Application localVar= ' + outerDocument.localVar}" />