Hello,

When loading a SWF file within a SWF through Loader's object, I'm
getting the following error message:

SecurityError: Error #2047: Security sandbox violation: parent:
http://192.168.0.20/wid/Widget1.swf cannot access
http://192.168.0.18:81/Any/container/ContainerSWF.swf.
     at flash.display::DisplayObject/get parent()
     at
mx.managers::SystemManager/executeCallbacks()[E:\dev\flex_3_beta3\sdk\fr\
ameworks\projects\framework\src\mx\managers\SystemManager.as:1518]
     at
mx.managers::SystemManager/docFrameHandler()[E:\dev\flex_3_beta3\sdk\fra\
meworks\projects\framework\src\mx\managers\SystemManager.as:2311]


Following facts may help:
1. On the server of the loaded-SWF file, crossdomain.xml exists with the
"*" permission.
2. In the initialize event handler of the loaded-SWF file,
Security.allowDomain("*") also exists.

If I write "Security.allowDomain("*")" in the loading SWF, then this
error is solved.

But my question is,  "Why is it necessary to use allowDomain() in the
loading-SWF, as I don't want to allow the loaded-SWF file to cross
script the loading-SWF file?" or "How can I solve this error without
using the allowDomain() in the loading-SWF?"


Thanks,
Ahmed

Reply via email to