# getChildByName question

**URL:** <https://forum.kirupa.com/t/getchildbyname-question/323433>\
**Category:** flash\
**Created:** [June 30, 2011, 1:04pm UTC](https://forum.kirupa.com/t/getchildbyname-question/323433 "2011-06-30T13:04:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harm\_less](https://avatars.discourse-cdn.com/v4/letter/h/bc8723/32.png) [@harm\_less](https://forum.kirupa.com/u/harm_less)\
**Post date:** [June 30, 2011, 1:04pm UTC](https://forum.kirupa.com/t/getchildbyname-question/323433/1 "2011-06-30T13:04:03Z")

</div>

Hello,

When you add a child (movieclip) to the stage on runtime do you have to get it by getChildByName or getChildAt or is there some other way?  
Because when you create a movieclip structure in the Flash IDE you can just call it by movieclip.another\_movieclip.x for example.  
And setting the name of the child results in getting the child using getChildByName. So can I make and add a movieclip on runtime without having to get it through getChildByName?

Harm
