# How to removeChild? Pleasee

**URL:** <https://forum.kirupa.com/t/how-to-removechild-pleasee/288847>\
**Category:** flash\
**Created:** [May 21, 2009, 7:20pm UTC](https://forum.kirupa.com/t/how-to-removechild-pleasee/288847 "2009-05-21T19:20:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danzalec](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@danzalec](https://forum.kirupa.com/u/danzalec)\
**Post date:** [May 21, 2009, 7:20pm UTC](https://forum.kirupa.com/t/how-to-removechild-pleasee/288847/1 "2009-05-21T19:20:28Z")

</div>

I have this code for a multi gallery. I need to remove the child where the swf loads.  
Help me!!

## the code

function newvid(event:MouseEvent) {  
trace(“you clicked me1”);  
var loadit = new Loader();  
addChild(loadit);  
loadit.load(new URLRequest(“image\_gallery\_animated.swf”));  
}  
boton1.addEventListener(MouseEvent.MOUSE\_DOWN, newvid);  
function newvid2(event:MouseEvent) {  
trace(“you clicked me2”);  
var loadit2 = new Loader();  
addChild(loadit2);  
loadit2.load(new URLRequest(“image\_gallery\_animated2.swf”));  
}  
boton2.addEventListener(MouseEvent.MOUSE\_DOWN, newvid2);

function newvid3(event:MouseEvent) {  
trace(“you clicked me3”);  
var loadit3 = new Loader();  
addChild(loadit3);  
loadit3.load(new URLRequest(“image\_gallery\_animated3.swf”));  
}  
boton3.addEventListener(MouseEvent.MOUSE\_DOWN, newvid3);

* * *

Thanx
