I have two separate Flex 3.3 applications, each of which is configured for
remoting via LCDS. No problems there.
The second, smaller application can ALSO be loaded into the first, larger
application. In order for remoting to continue to work inside the second
"sub-application", I had to load it's SWF in a sandbox as untrusted and from a
different Security domain. No problems there. Even though the sub-app is
loaded into the larger primary app, it's still capable of making its own
remoting calls. Great.
Now, I'd like to listen for events fired off the sub-app from the primary app.
I think the normal routine for this looks like:
swfLoader.content.addEventListener( "myEvent", someFunction );
But there's the problem. Since the sub-app is loaded into a sandbox, the
primary app doesn't have access to the "content" attribute of SWFLoader.
You'll get a security sandbox violation, EVEN when I attempt to call
Security.allowDomain("*") in the swfloader's complete event handler (in the
primary app), and in the preinitialization handler in the sub-application.
Anyone else run into a similar problem?