PDA

View Full Version : Swfloader and parentapplication


box86rowh
04-09-2008, 02:14 AM
Hello,
I have a correctly functioning flex app that throughout references the parentApplication object to get back to functions and properties loaded there. I now want to compile this to a swf and load it dynamically into another flex app. It loads fine, but now when I load it into the app, an do any procedures that referance the parentApplication, it looks at the top level app that it has been loaded into. How can I get around this? In as2 we had lockroot that would prevent calls like that from being passed on to the parent doc?? Is there something similar I can use?

Thanks!

dr_zeus
04-09-2008, 05:56 PM
Application.application should point to the current SWF's application instance. I may be wrong, though. I haven't tested it.