# removeChild problem need to be solved

**URL:** <https://forum.kirupa.com/t/removechild-problem-need-to-be-solved/293439>\
**Category:** Uncategorized\
**Created:** [July 29, 2009, 12:56am UTC](https://forum.kirupa.com/t/removechild-problem-need-to-be-solved/293439 "2009-07-29T00:56:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reisuke](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@reisuke](https://forum.kirupa.com/u/reisuke)\
**Post date:** [July 29, 2009, 12:56am UTC](https://forum.kirupa.com/t/removechild-problem-need-to-be-solved/293439/1 "2009-07-29T00:56:18Z")

</div>

i have this function in my 1st frame

> function DisplayPic(evt:Event):void {  
> if (typing\_txt.length==10) {  
> var pic\_mc:MovieClip = new MovieClip();  
> var temp\_mc:MovieClip = new card();  
> pic\_mc.addChild(temp\_mc);  
> pic\_mc.x = 316.8;  
> pic\_mc.y = 244.8;  
> addChild(pic\_mc);  
> stage.removeEventListener(Event.ENTER\_FRAME, DisplayPic);  
> }

when i go to “frame5” ,the pic\_mc will still appear on “frame5”  
may i know how to remove all the “pic\_mc” on “frame5”?
