# There are more children than parent shows!

**URL:** <https://forum.kirupa.com/t/there-are-more-children-than-parent-shows/248584>\
**Category:** flash\
**Created:** [January 9, 2008, 10:14pm UTC](https://forum.kirupa.com/t/there-are-more-children-than-parent-shows/248584 "2008-01-09T22:14:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dataxa](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@dataxa](https://forum.kirupa.com/u/dataxa)\
**Post date:** [January 9, 2008, 10:14pm UTC](https://forum.kirupa.com/t/there-are-more-children-than-parent-shows/248584/1 "2008-01-09T22:14:48Z")

</div>

Code:  
trace(this.parent);  
trace(stageRef.getChildAt(0).parent);  
trace(stageRef.numChildren);

Output:  
[object Stage]  
[object Stage]  
1

Code is in “engine.as” and i have put “engine” as document class on “engine.fla” prop bar.  
I have draged-and-dropped some flash pre-made components, like button, to the timeline.

My question: How can it show only 1 children if i check both objects for a parent and its Stage(stageRef)?
