# Question about loading an external swf

**URL:** https://forum.kirupa.com/t/question-about-loading-an-external-swf/300387
**Category:** flash
**Created:** [November 20, 2009, 6:37am UTC](https://forum.kirupa.com/t/question-about-loading-an-external-swf/300387 "2009-11-20T06:37:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mikiekwoods](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@mikiekwoods](https://forum.kirupa.com/u/mikiekwoods)
#### Post date: [November 20, 2009, 6:37am UTC](https://forum.kirupa.com/t/question-about-loading-an-external-swf/300387/1 "2009-11-20T06:37:31Z")

</div>

Hi, I’m using this code (below) from a site I found. Works fine.

I’d like to know what would be the arguement to removeChild. In other words, what would I put in the parentheses to remove the child the code created?

```auto
import flash.net.URLRequest; 
import flash.display.Loader; 
import flash.events.Event; 
import flash.events.ProgressEvent; 
function startLoad() { 
    var mLoader:Loader = new Loader(); 
    var mRequest:URLRequest = new URLRequest('home.swf'); 
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler); 
    mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler); 
    mLoader.load(mRequest); 
} 
function onCompleteHandler(loadEvent:Event) {         
    addChild(loadEvent.currentTarget.content); 
} 
function onProgressHandler(mProgress:ProgressEvent) { 
    var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal; 
    trace(percent); 
} 
startLoad();

```
