Loading external Swf - sandbox violation

Posted by Yamen Al-Haj on Stack Overflow See other posts from Stack Overflow or by Yamen Al-Haj
Published on 2010-05-05T09:05:14Z Indexed on 2010/05/05 9:08 UTC
Read the original article Hit count: 178

Filed under:
|
|

Hello Mates ,

I need a help ... an urgent one !!! i tried so hard to figured it out .. but i couldn't .. so I appreciate your help so much ..

I'm developing an Air App using flash ... the app loads an external SWF file dynamically through an xml ... the SWF file has a movieclip that has a listener (ON click )

function mouseDownHandler(event:MouseEvent):void { navigateToURL(new URLRequest(clickURL));

}

everything is working fine until i click on this movieclip ... it displays the below message

SecurityError: Error #2121: Security sandbox violation: navigateToURL: http://www.mydomain.com/maskot/avatar.swf cannot access YAHOO.COM for example. This may be worked around by calling Security.allowDomain.

any help !!! because i really have a deadline !

Thank you so much !

© Stack Overflow or respective owner

Related posts about adobe-air

Related posts about as3