1
votes

I have two swf, one loads the other using a Loader class, in the loaded swf I have a NetConnection object which I need to access from the host swf, but I can't, if I debug the app, I see the obejct is there, but I can't access it, if I try to set a variable like

loadedSWF = connectorLoader.content (connectorLoader is the Loader object)

loadedSWF is always null

If I debig the app, I see the NetConnection in the loaded SWF, but I can't have access to it, I have try to use Security.allowDomain("*") in both swf to be sure, but nothing, I thought that only doing the allowDomain method I will have access to the loaded SWF objects

I'm usign Flas Player version 10.1

thanks! for any help

1
Are you sure you're calling loadedSWF = connectorLoader.content; from the complete event handler? If not read this threadAmarghosh

1 Answers

0
votes

That said I would make sure that your loaded swf is a debug swf? Do you have the source code for the debug swf? In Flash Builder when specifying external libraries, you have to specify the source code location. How do you expect the Flex Debugger to be aware of the source code location for an asset loaded at runtime?

I don't think it was possible to debug through loaded assets.