# Dynamic textfield in movieclip

**URL:** <https://forum.kirupa.com/t/dynamic-textfield-in-movieclip/280079>\
**Category:** flash\
**Created:** [January 22, 2009, 12:03pm UTC](https://forum.kirupa.com/t/dynamic-textfield-in-movieclip/280079 "2009-01-22T12:03:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoemeistah](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@shoemeistah](https://forum.kirupa.com/u/shoemeistah)\
**Post date:** [January 22, 2009, 12:03pm UTC](https://forum.kirupa.com/t/dynamic-textfield-in-movieclip/280079/1 "2009-01-22T12:03:36Z")

</div>

Hi all,

After long time searching I came across here as there are many solved problems already.  
Hopefully someone has an answer for this, I’m using AS2.

I have a problem with loading text from a \*.txt file into a dynamic textfield which is located in a movieclip in another movieclip. It seems it can’t find the textfield because it is in movieclips. I know I shouldn’t work with the ‘\_root’ command but in my project it doesn’t matter. Also tried making ‘\_root’ globalmain to ‘this’. But that still doesn’t do the trick.

```auto

tdata = new LoadVars();
tdata.onLoad = function(success) {
    if (success) {
        _root.movie1.movie2.dynamic_content.htmlText = this.content;
    } else {
        trace("No content found");
    }
};

tdata.load("data1.txt")

```

Like to share my knowledge too.  
Thanks a lot in advance!
