# getChildAt(x).numChildren

**URL:** <https://forum.kirupa.com/t/getchildat-x-numchildren/317716>\
**Category:** flash\
**Created:** [December 30, 2010, 11:00pm UTC](https://forum.kirupa.com/t/getchildat-x-numchildren/317716 "2010-12-30T23:00:45Z")\
**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:** [December 30, 2010, 11:00pm UTC](https://forum.kirupa.com/t/getchildat-x-numchildren/317716/1 "2010-12-30T23:00:45Z")

</div>

hi there, i have this issue. i know that in “**stage.getChildAt(0)**” position, there is an object called **my\_mc**. but when i try : **getChildAt(0).numChildren** flash exports this **error** “access of possibly undefined property numChildren …”  
if i try **my\_mc.numChildren** it works. but i need the other way! any ideas? thanks in advance
