Use Application control's initialize event : Application Event « Container « Flex






Use Application control's initialize event

Use Application control's initialize event
            
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="initApp();">
    <mx:Script>
    
        import mx.managers.ToolTipManager;
    
        private function initApp():void {
            ToolTipManager.enabled = true;
        }
    
      </mx:Script>
    <mx:Button label="Click Me" toolTip="Click this Button to do something"/>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Application creationComplete event
2.Add event handler for applicationAdd event handler for application
3.Application initialize eventApplication initialize event
4.preinitialize, initialize, creationComplete events for Applicationpreinitialize, initialize, creationComplete events for Application
5.Application complete eventApplication complete event
6.Application click eventApplication click event