# How to getGrandChildByName()?

**URL:** <https://forum.kirupa.com/t/how-to-getgrandchildbyname/321403>\
**Category:** Uncategorized\
**Created:** [April 19, 2011, 6:13am UTC](https://forum.kirupa.com/t/how-to-getgrandchildbyname/321403 "2011-04-19T06:13:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ColinDavies](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@ColinDavies](https://forum.kirupa.com/u/ColinDavies)\
**Post date:** [April 19, 2011, 6:13am UTC](https://forum.kirupa.com/t/how-to-getgrandchildbyname/321403/1 "2011-04-19T06:13:43Z")

</div>

If I know the child is foo and the child’s child is bar  
then I thought I could return a DisplayObject via

```auto
 
myDO = getChildByName("foo.bar") as DisplayObject;

```

But know that doesnt seem to work,  
Is there an easy way to do this ?

Thx.
