views:

150

answers:

1

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 !

A: 
This may be worked around by calling Security.allowDomain.

read the error.

jonathanasdf
how can I add it ! it may call any URL in the world ... please advise
Yamen Al-Haj