# Having trouble removing movieClip

**URL:** <https://forum.kirupa.com/t/having-trouble-removing-movieclip/287339>\
**Category:** Uncategorized\
**Created:** [April 29, 2009, 5:11pm UTC](https://forum.kirupa.com/t/having-trouble-removing-movieclip/287339 "2009-04-29T17:11:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![werehunt](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@werehunt](https://forum.kirupa.com/u/werehunt)\
**Post date:** [April 29, 2009, 5:11pm UTC](https://forum.kirupa.com/t/having-trouble-removing-movieclip/287339/1 "2009-04-29T17:11:41Z")

</div>

I have trouble getting to it…

this works fine:

```auto
holderArr[loadedImages].preloader_mc.stop(); 

```

this works fine:

```auto
trace(holderArr[loadedImages].getChildAt(3).name); 

```

output: preloader\_mc

but if I say this:

```auto
holderArr[loadedImages].removeChild(preloader_mc); 

```

I get an error:  
ReferenceError: Error #1065: Variable preloader\_mc is not defined.  
at MethodInfo-84()

this doesnt work either:

```auto
 holderArr[loadedImages].removeChild(getChildByName(preloader_mc));

```

nor this:

```auto
 holderArr[loadedImages].removeChild(getChildByName("preloader_mc"));

```
