# Un-externally load swf

**URL:** <https://forum.kirupa.com/t/un-externally-load-swf/292735>\
**Category:** flash\
**Created:** [July 18, 2009, 5:27am UTC](https://forum.kirupa.com/t/un-externally-load-swf/292735 "2009-07-18T05:27:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilpreet](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@dilpreet](https://forum.kirupa.com/u/dilpreet)\
**Post date:** [July 18, 2009, 5:27am UTC](https://forum.kirupa.com/t/un-externally-load-swf/292735/1 "2009-07-18T05:27:37Z")

</div>

hey

this is how i externally load a file

ActionScript Code:

```php
stop();
var mLoader:Loader = new Loader;
var mRequest:URLRequest = new URLRequest("stick finish.swf");

mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.load(mRequest);

function onCompleteHandler(loadEvent:Event)
{
        addChild(loadEvent.currentTarget.content);
}

```

but how do i un-externally load it so remove the externally loaded file and just leave the original one.

thanks
