Loading external Swf - sandbox violation
- by Yamen Al-Haj
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 !