The content of a SWFLoader for a loaded Flex app is not the Application, it is the SystemManager.
Thank you for the response. http://www.java2s.com/Code/Flex/Development/SWFLoaderinitevent.htm I'm using this example.Why can't I access the flexApp2Function function in init method itself? As this is the definitin I got from lang-ref for SWFLoader init event, Dispatched when the properties and methods of a loaded SWF file are accessible.
Well, you can have the sub-application dispatch an event off of its systemManager or poll on enterFrame, but the sub-objects in the Application may not be fully ready yet at that point.
Also, keep in mind that AIR loads remote applications into a security sandbox, so these events and the application are cannot be accessed directly. You will need to use “Marshall Plan” techniques to share between SWFs.