# Root.addChild() error

**URL:** https://forum.kirupa.com/t/root-addchild-error/255517
**Category:** Uncategorized
**Created:** [March 24, 2008, 10:26am UTC](https://forum.kirupa.com/t/root-addchild-error/255517 "2008-03-24T10:26:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)
#### Post date: [March 24, 2008, 10:26am UTC](https://forum.kirupa.com/t/root-addchild-error/255517/1 "2008-03-24T10:26:46Z")

</div>

what does this error mean?  
“1061: Call to a possibly undefined method addChild through a reference with static type flash.display:DisplayObject.”

my code is

root.addChild(img);

but when i change it to

stage.addChild(img); it works fine. but i want to place it on root…
