# removeChild help!

**URL:** <https://forum.kirupa.com/t/removechild-help/310106>\
**Category:** Uncategorized\
**Created:** [June 1, 2010, 5:39pm UTC](https://forum.kirupa.com/t/removechild-help/310106 "2010-06-01T17:39:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Immulsifier](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@Immulsifier](https://forum.kirupa.com/u/Immulsifier)\
**Post date:** [June 1, 2010, 5:39pm UTC](https://forum.kirupa.com/t/removechild-help/310106/1 "2010-06-01T17:39:35Z")

</div>

Hi

If i am adding a movieclip by

```auto
holderMC.addChild (mc);
mc.name = "loading";

```

Why does the following code not remove it

```auto
holderMC.removeChild(getChildByName("loading"));

```
