# Help with an "unload" or remove child

**URL:** <https://forum.kirupa.com/t/help-with-an-unload-or-remove-child/273101>\
**Category:** Uncategorized\
**Created:** [October 11, 2008, 3:02am UTC](https://forum.kirupa.com/t/help-with-an-unload-or-remove-child/273101 "2008-10-11T03:02:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigmamainthemud](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@bigmamainthemud](https://forum.kirupa.com/u/bigmamainthemud)\
**Post date:** [October 11, 2008, 3:02am UTC](https://forum.kirupa.com/t/help-with-an-unload-or-remove-child/273101/1 "2008-10-11T03:02:44Z")

</div>

So I don’t know what the best way to do this is but I have not had this trouble while scripting on the time line and since custom classes are new to me maybe y’all could help a bit.

//Pages  
package classes  
{

```
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;	

public class Pages extends MovieClip
{
	// initialize -----------------------------------------------------------------------------

	public function Pages()
	{
		super();
	}
	// API ------------------------------------------------------------------------------------

	public function loadPage(swf:String):void
	{
		var myRequest:URLRequest=new URLRequest(swf);
		var myLoader:Loader = new Loader();
		myLoader.load(myRequest);
		addChild(myLoader);
		myLoader.x = -400;
		myLoader.y = -270;
	}
}

```

}

the addChild is working fine but the previous .flv won’t go away.  
Any help would be greatly appreciated, thanks
