开发者

as3 access an object inside a loaded swf

I have two swf, one loads the other using a Loader class, in the loaded swf I have a NetConnection ob开发者_运维百科ject 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


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜