# Loading an external SWF file

**URL:** <https://forum.kirupa.com/t/loading-an-external-swf-file/306582>\
**Category:** Uncategorized\
**Created:** [March 17, 2010, 10:10pm UTC](https://forum.kirupa.com/t/loading-an-external-swf-file/306582 "2010-03-17T22:10:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shertok](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@Shertok](https://forum.kirupa.com/u/Shertok)\
**Post date:** [March 17, 2010, 10:10pm UTC](https://forum.kirupa.com/t/loading-an-external-swf-file/306582/1 "2010-03-17T22:10:57Z")

</div>

Hello,

I am trying to load an external SWF file, for some reason (can’t figure out)  
my code doesn’t work

my code is:

var loader:Loader = new Loader();  
loader.load(new URLRequest());  
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded, false,0,true);

function loaded(evt:Event): void{  
addChild(evt.target.content);

}

name\_btn.addEventListener(MouseEvent.CLICK, loadFixMovieClip);

loader.x = 282;  
loader.y = 27;

function loadFixMovieClip (evtObj: MouseEvent):void  
{  
loader.content (“fix.swf”);

}

any ideas would be greatly appreciated
