Loading an external SWF App in a new Air window with resize functionality

Posted by t.stamm on Stack Overflow See other posts from Stack Overflow or by t.stamm
Published on 2010-03-08T12:44:28Z Indexed on 2010/03/11 21:24 UTC
Read the original article Hit count: 524

Filed under:
|
|

Hello everyone,

i'm trying to load a local SWF Application in my Air Application via the SWFLoader class. The SWFLoader class is displayed in a new Window. Therefore, i'm trying to resize the window automatically, when the Flash Application is resizing. But here's the problem. The SWFLoader does not get any events when the loader App has been resized.

The Problem seems to be the Sandbox Restrictions. I'm able to call methods in the childSandboxBridge and parentSandboxBridge Objects that i've set in the LoaderInfo of the SWFLoaders content (the loaded SWF Application). But i cannot listen to any ResizeEvents or something like that when i'm resizing the loaded App.

I'm aware of the workaround with the Loader Class and the codeExecution Property, but i don't want to bypass the Air Sandbox - if possible.

Can anyone help me with this?

Thanks in advance

© Stack Overflow or respective owner

Related posts about flash

Related posts about flex