# Object ID

**URL:** <https://forum.kirupa.com/t/object-id/320005>\
**Category:** Uncategorized\
**Created:** [March 10, 2011, 11:49pm UTC](https://forum.kirupa.com/t/object-id/320005 "2011-03-10T23:49:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orgio](https://avatars.discourse-cdn.com/v4/letter/o/74df32/32.png) [@orgio](https://forum.kirupa.com/u/orgio)\
**Post date:** [March 10, 2011, 11:49pm UTC](https://forum.kirupa.com/t/object-id/320005/1 "2011-03-10T23:49:13Z")

</div>

hey there. A small problem here.

i write:

**object.id = 1;**  
\*\*  
trace(object.id);\*\* //everything works fine  
but  
**trace(getChildAt(1).id);** //error (btw the object is for sure in position 1)  
if i try  
**trace(DisplayObjectContainer(getChildAt(1)).id);** //still error “Access of possibly undefined property through a reference with static type flash.display:DisplayObjectContainer”

Any ideas? thanks in advance
