# Error #2025: The supplied DisplayObject must be a child of the caller

**URL:** <https://forum.kirupa.com/t/error-2025-the-supplied-displayobject-must-be-a-child-of-the-caller/314002>\
**Category:** Uncategorized\
**Created:** [September 15, 2010, 9:19pm UTC](https://forum.kirupa.com/t/error-2025-the-supplied-displayobject-must-be-a-child-of-the-caller/314002 "2010-09-15T21:19:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![walker6o9](https://avatars.discourse-cdn.com/v4/letter/w/4bbf92/32.png) [@walker6o9](https://forum.kirupa.com/u/walker6o9)\
**Post date:** [September 15, 2010, 9:19pm UTC](https://forum.kirupa.com/t/error-2025-the-supplied-displayobject-must-be-a-child-of-the-caller/314002/1 "2010-09-15T21:19:54Z")

</div>

Error #2025: The supplied DisplayObject must be a child of the caller

is the message I’m getting when I try to remove all the movieclips in an array. I understand why it’s happening: I’ve already removed one of the movieclips earlier. I tried putting an if statement in the loop to remove it, but the movie clip still exist, and the trace statement doesn’t return null.

for(var i=0;i\<totalBalloons;i++){  
trace(“balloonarray:”+balloonArray\*);  
if(balloonArray\*!=‘null’){  
this.removeChild(balloonArray\*);  
}

```
		}
```
