# Accessing dynamic text from inside an addChild object

**URL:** <https://forum.kirupa.com/t/accessing-dynamic-text-from-inside-an-addchild-object/269423>\
**Category:** flash\
**Created:** [August 27, 2008, 12:44pm UTC](https://forum.kirupa.com/t/accessing-dynamic-text-from-inside-an-addchild-object/269423 "2008-08-27T12:44:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joemurray](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@joemurray](https://forum.kirupa.com/u/joemurray)\
**Post date:** [August 27, 2008, 12:44pm UTC](https://forum.kirupa.com/t/accessing-dynamic-text-from-inside-an-addchild-object/269423/1 "2008-08-27T12:44:18Z")

</div>

Can’t figure this out for the life of me. Its probably something simple, but I can’t find any solutions online. Can anyone help a brother out here? All I’m trying to do is assign text to a dynamic text box that is inside a movieclip (loaded from the library using addChild()

Heres my code (obviously wrong) :

for(var i:uint=0; i\<myXML._.length(); i++) {  
var myMC:MovieClip = new content\_mc();  
myMC.y = i_170;  
myMC.title\_txt.text = “Blah”;  
this.content.addChild(myMC);  
}
