# Parsing the DisplayObjectContainer

**URL:** <https://forum.kirupa.com/t/parsing-the-displayobjectcontainer/238973>\
**Category:** Uncategorized\
**Created:** [September 17, 2007, 5:02pm UTC](https://forum.kirupa.com/t/parsing-the-displayobjectcontainer/238973 "2007-09-17T17:02:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkos](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@kkos](https://forum.kirupa.com/u/kkos)\
**Post date:** [September 17, 2007, 5:02pm UTC](https://forum.kirupa.com/t/parsing-the-displayobjectcontainer/238973/1 "2007-09-17T17:02:27Z")

</div>

if you have an object with nested childs, the DisplayObjectContainer  
methods getChild, getChildAt…etc. only allow the access to childs with a sibling relationship.  
For instance, i have a container with a Child Sprite1 which has a Child Sprite2 and so on,  
the numChildren property only shows the number of siblings which is 1 for the container in that example.

Therefore, the getChildByName method only allows the access to Sprite1.

So how can i get to deeper nested Objects in the DisplayObjectContainer?  
Is there any way of ‘parsing’ the DisplayObjectContainer?  
I mean, using getChildByName i would have expected to reach any child at any level with that spezific name.

Keith
