# RemoveChild On Stage

**URL:** <https://forum.kirupa.com/t/removechild-on-stage/274686>\
**Category:** flash\
**Created:** [November 3, 2008, 3:47am UTC](https://forum.kirupa.com/t/removechild-on-stage/274686 "2008-11-03T03:47:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [November 3, 2008, 3:47am UTC](https://forum.kirupa.com/t/removechild-on-stage/274686/1 "2008-11-03T03:47:35Z")

</div>

If I add a movieclip to the stage like this:

```auto

var feedbackBox_mc:feedbackBox = new feedbackBox;
feedbackBox_mc.x = 807;
feedbackBox_mc.y = 248;
addChildAt(feedbackBox_mc,1); // Add at level 1

```

How can I then remove it (on the click of a button)?

```auto
stage.removeChild(feedbackBox_mc); // TypeError: Error #2007: Parameter child must be non-null.

```

I can’t seem to find the object at level 1 on the stage

```auto

stage.removeChildAt(1); // RangeError: Error #2006: The supplied index is out of bounds.

```
