# addChild within addChild?

**URL:** https://forum.kirupa.com/t/addchild-within-addchild/230363
**Category:** flash
**Created:** [June 25, 2007, 5:55pm UTC](https://forum.kirupa.com/t/addchild-within-addchild/230363 "2007-06-25T17:55:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![patrickjv](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@patrickjv](https://forum.kirupa.com/u/patrickjv)
#### Post date: [June 25, 2007, 5:55pm UTC](https://forum.kirupa.com/t/addchild-within-addchild/230363/1 "2007-06-25T17:55:29Z")

</div>

I have a addchild within addchild, simplified;

var mama = new effect\_pj\_8\_rotate();  
addChild(mama);  
var baby = new letter\_pj\_8\_rotate();  
mama.addChild(baby);

Now the Library item letter\_pj\_8\_rotate contains a text field with instance name `lettervalue`. If I add the following line

mama.baby.lettervalue.text = “w”;

It doesn`t set the text field to letter “w” but gives output  
TypeError: Error #1010: A term is undefined and has no properties.  
at PJ\_8\_rotate/::frame1()

Anybody see any syntax error?
