# Bringing in child

**URL:** <https://forum.kirupa.com/t/bringing-in-child/301479>\
**Category:** flash\
**Created:** [December 9, 2009, 9:06pm UTC](https://forum.kirupa.com/t/bringing-in-child/301479 "2009-12-09T21:06:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaapStudent](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DaapStudent](https://forum.kirupa.com/u/DaapStudent)\
**Post date:** [December 9, 2009, 9:06pm UTC](https://forum.kirupa.com/t/bringing-in-child/301479/1 "2009-12-09T21:06:25Z")

</div>

here is the code

Continue30.addEventListener(MouseEvent.MOUSE\_DOWN, ChangeTo35);  
function ChangeTo35(e:MouseEvent):void {  
while (stage.numChildren \> 0) {  
stage.removeChildAt(stage.numChildren-1);  
if (stage == null) {  
break;  
}  
}  
gotoAndStop(35);  
}

i want to remove the children on the stage and jump to another frame where there is more children that come on the stage. however, when using this code, I lose all the children on both screens. Does anyone know how to fix that?:bu:
