# removeChild from an array

**URL:** https://forum.kirupa.com/t/removechild-from-an-array/288992
**Category:** flash
**Created:** [May 24, 2009, 7:52pm UTC](https://forum.kirupa.com/t/removechild-from-an-array/288992 "2009-05-24T19:52:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![krimzondestiny](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krimzondestiny](https://forum.kirupa.com/u/krimzondestiny)
#### Post date: [May 24, 2009, 7:52pm UTC](https://forum.kirupa.com/t/removechild-from-an-array/288992/1 "2009-05-24T19:52:27Z")

</div>

I’m trying to figure out why I can’t remove the child of the meteors immediately after they have hit the planet or a building so that it would only damage the building once. When I try to just ‘removeChild(meteorArray[k])’ AS says that the ‘object must be a child of the caller’. I’m not sure what that means, but I thought that the meteor was the child of the main document class.
