# Need advice on removing something from the stage

**URL:** <https://forum.kirupa.com/t/need-advice-on-removing-something-from-the-stage/325307>\
**Category:** Uncategorized\
**Created:** [October 8, 2011, 8:22pm UTC](https://forum.kirupa.com/t/need-advice-on-removing-something-from-the-stage/325307 "2011-10-08T20:22:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgwriter](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@dgwriter](https://forum.kirupa.com/u/dgwriter)\
**Post date:** [October 8, 2011, 8:22pm UTC](https://forum.kirupa.com/t/need-advice-on-removing-something-from-the-stage/325307/1 "2011-10-08T20:22:21Z")

</div>

Hi all,  
I am pretty much a Flash nubie just forging my way through things. I am making a little drag and drop game where you click on a movieclip, which acts as a button. When the moviclip/button is clicked a duplicate of that same movieclip, only larger, is added to the stage. You then drag and drop it in a designated area on the stage.

I have that part of the code working fine. What I need is a reset button that removes the larger movieclip that was dragged. I am not sure how to do this.

Below is my code that is working fine. In the code I am the movieclip instance is named “myMC” and its class is “MyMC”.

myMC.addEventListener(MouseEvent.MOUSE\_DOWN, moveMC);

function moveMC(e:MouseEvent){  
var newMC:MyMC = new MyMC();  
addChild(newMC);  
newMC.width += 280;  
newMC.height += 280;  
newMC.x=myMC.x;  
newMC.y=myMC.y;

```
newMC.addEventListener(MouseEvent.MOUSE_DOWN, dragMC)   
newMC.addEventListener(MouseEvent.MOUSE_UP, dropMC)

```

}

function dragMC(e:MouseEvent){  
e.currentTarget.startDrag();  
}

function dropMC(e:MouseEvent){  
e.currentTarget.stopDrag();  
}

I tried removeChild for (myMC); and that removed everything. I only want to remove the second larger duplicate movieclip “newMC”.

Anyhelp would be greatly appreciated!
