Unable to access sub appliation variable on SWFLoader init method. Got the following error when I try to access, ReferenceError: Error #1069: Property someVar not found on _SubApplication_mx_managers_SystemManager and there is no default value.
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.