SWFLoader init event : SWFLoader « Development « 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 » Development » SWFLoaderScreenshots 
SWFLoader init event
SWFLoader init event
          

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

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

        private function applicationCompleteHandler(event:Event):void {
            event.target.application.flexApp2Function("test");
        }
  
</mx:Script>
    <mx:SWFLoader source="a.swf" init="initHandlerFunction(event)" />
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Use to load a control stored in swf fileUse <mx:SWFLoader> to load a control stored in swf file
2.Using the SWFLoader control to load a LiveCycle
3.Load a SWF by Using the SWFLoaderLoad a SWF by Using the SWFLoader
4.Use SWFLoader to load a swf file
5.Load External SWFLoad External SWF
www__.___ja_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.