# Loader.unload

**URL:** https://forum.kirupa.com/t/loader-unload/231645
**Category:** Uncategorized
**Created:** [July 6, 2007, 12:17pm UTC](https://forum.kirupa.com/t/loader-unload/231645 "2007-07-06T12:17:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Shabaz](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Shabaz](https://forum.kirupa.com/u/Shabaz)
#### Post date: [July 6, 2007, 12:17pm UTC](https://forum.kirupa.com/t/loader-unload/231645/1 "2007-07-06T12:17:59Z")

</div>

I’m going batty.

I load an external mc using this:

```auto
(in transition mc)
parent.contentHolder_mc.loadNextClip();

(in contentHolder mc)
function loadNextClip():void {
	var clipLoader:Loader = new Loader();
	addChild(clipLoader);
	clipLoader.unload();
	clipLoader.x = 0;
	clipLoader.y = 100;
	var clipName:URLRequest = new URLRequest(parent.nextClip);
	clipLoader.load(clipName);
	parent.transition_mc.gotoAndPlay("clear");

}

```

works great

I try to unload using.

```auto
parent.contentHolder_mc.removeChild('clipLoader');

```

and get this msg:  
[COLOR=“red”]“Type Coercion failed: cannot convert “clipLoader” to flash.display.DisplayObject.  
at mainShell\_fla::mc\_transision\_2/mainShell\_fla::frame83()”[/COLOR]

I try this code:

```auto
parent.contentHolder_mc.clipLoader.unload();

```

and get this msg:  
[COLOR=“Red”]A term is undefined and has no properties.  
at mainShell\_fla::mc\_transision\_2/mainShell\_fla::frame83()[/COLOR]

I can’t find one real world example of a clip being unload anywhere on the net. Just a whole bunch of - just use loader.unload();

help
