# Loading external Swf - sandbox violation

**URL:** <https://forum.kirupa.com/t/loading-external-swf-sandbox-violation/308991>\
**Category:** flash\
**Created:** [May 4, 2010, 6:05pm UTC](https://forum.kirupa.com/t/loading-external-swf-sandbox-violation/308991 "2010-05-04T18:05:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yamenalhaj](https://avatars.discourse-cdn.com/v4/letter/y/ccd318/32.png) [@yamenalhaj](https://forum.kirupa.com/u/yamenalhaj)\
**Post date:** [May 4, 2010, 6:05pm UTC](https://forum.kirupa.com/t/loading-external-swf-sandbox-violation/308991/1 "2010-05-04T18:05:30Z")

</div>

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](http://www.mydomain.com/maskot/avatar.swf) cannot access [http://www.yahoo.com](http://www.yahoo.com). This may be worked around by calling Security.allowDomain.

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

Thank you so much !
