# The supplied DisplayObject must be a child of the caller

**URL:** <https://forum.kirupa.com/t/the-supplied-displayobject-must-be-a-child-of-the-caller/266509>\
**Category:** Uncategorized\
**Created:** [July 21, 2008, 5:12pm UTC](https://forum.kirupa.com/t/the-supplied-displayobject-must-be-a-child-of-the-caller/266509 "2008-07-21T17:12:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![odiecreversed](https://avatars.discourse-cdn.com/v4/letter/o/43a26b/32.png) [@odiecreversed](https://forum.kirupa.com/u/odiecreversed)\
**Post date:** [July 21, 2008, 5:12pm UTC](https://forum.kirupa.com/t/the-supplied-displayobject-must-be-a-child-of-the-caller/266509/1 "2008-07-21T17:12:30Z")

</div>

LORD. I’m having trouble with the ol’ as3… any help would be appreciated. I’m getting the following error “ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.”

Here’s the code generating the problem.

```auto
    
var ipp:itemPreviewPicture = new itemPreviewPicture();
tabContainer_mc.addChild(ipp)
setChildIndex(ipp,0);
}

```

Anyone have any idea what might be going on here?;(
