1 Reply Latest reply on Jun 10, 2009 9:56 AM by Flex harUI

    Invoking a function in a loaded swf file




      I have a SWF file which loads an additional SWF file, in the following method:


                  var loader:Loader = new Loader();
                  loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
                  var request:URLRequest = new URLRequest(swf);


      I want the parent (containing) SWF to call a "boot" function on the child SWF, so it will tell it what is the name of the LocalConnection that the parent is "connected" to. (The reason that the name of the LocalConnection is not fixed, is because I need to support multiple instances).


      Any ideas?