Effects Flex


    
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
    creationComplete="initButton();">
     
         
        // Because the Immediate view state creates the Button control 
        // at application startup, you can access the control to 
        // set the label before the first switch 
        // to the Immediate view state. 
        public function initButton():void { 
            newButtonImmediate.label="Immediate Button"; 
            // Uncommenting this line to access the label causes a 
            // Run Time Exception because newButtonDeferred does not exist yet. 
            // newButtonDeferred.label="Deferred Button"; 
        } 
      
    

    
        
        
        
    

            height="150">
        
            
        

        
                    itemCreationPolicy="immediate" />
        
                    includeIn="Deferred" itemCreationPolicy="deferred" />