I am building a compartmentalized Flex application which uses <SWFLoader >
to load additional Flex applications inside it. I am currently planning on using the LocalConnection class to have these two applications talk to each other, but I'm wondering if there's any kind of event driven way to have actions in the internal application propagate to the parent application, and/or any way for the parent application to trigger events in the internal application?
views:
30answers:
1
A:
yes it can but be careful what types you pass across the bridge if you are loading with loadForCompatability=true. Have a look at this document LoaderInfo paying particular attention to sharedEvents. It basically allows you to raise events from the subApplication to the parent and vice versa. For more complex scenarios, using AIR have a look at the child/parent Sandbox bridges.
dan
2010-08-02 19:17:09