Application complete event : Application Event « Container « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Container » Application EventScreenshots 
Application complete event
Application complete event
            

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
        
            import mx.managers.SystemManager;
            import mx.events.FlexEvent;

            private function initHandler(event:Event):void {
                event.target.content.addEventListener(FlexEvent.APPLICATION_COMPLETE,applicationCompleteHandler);
            }

            private function applicationCompleteHandler(event:Event):void {
                event.target.application.setBackground(0xFFFF00);
            }

      
    </mx:Script>
    <mx:SWFLoader source="a.swf" init="initHandler(event)" />
</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.Use Application control's initialize eventUse Application control's initialize event
5.preinitialize, initialize, creationComplete events for Applicationpreinitialize, initialize, creationComplete events for Application
6.Application click eventApplication click event
w___ww_.__j_a___v_a___2__s___._c_o__m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.