# How can i delete a movieclip thats inside a parent

**URL:** <https://forum.kirupa.com/t/how-can-i-delete-a-movieclip-thats-inside-a-parent/315375>\
**Category:** Uncategorized\
**Created:** [October 24, 2010, 10:21pm UTC](https://forum.kirupa.com/t/how-can-i-delete-a-movieclip-thats-inside-a-parent/315375 "2010-10-24T22:21:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![autumnmedia](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@autumnmedia](https://forum.kirupa.com/u/autumnmedia)\
**Post date:** [October 24, 2010, 10:21pm UTC](https://forum.kirupa.com/t/how-can-i-delete-a-movieclip-thats-inside-a-parent/315375/1 "2010-10-24T22:21:02Z")

</div>

stop();

this.addEventListener(MouseEvent.MOUSE\_DOWN, active);  
function active (e:MouseEvent):void {  
this.gotoAndStop(2);  
MovieClip(parent).memb2.gotoAndStop(1);  
MovieClip(parent).memb3.gotoAndStop(1);  
MovieClip(parent).memb4.gotoAndStop(1);  
var mem1:m1 = new m1();  
MovieClip(parent).addChild(mem1);  
mem1.x = 280;  
mem1.y = 140;  
}

this is adding mem1 to the parent,

now on the next frame i want to remove that movieclip, how would i go about doing this.  
i tried just putting  
MovieClip(parent).removeChild(mem1);  
but it says accessing undefined property

any help?!
