开发者

Can A .swf loaded with SWFLoader propagate events to the parent application?

I am building a compartmentalized Flex applicati开发者_如何学运维on 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜