# External text inside movieclip

**URL:** <https://forum.kirupa.com/t/external-text-inside-movieclip/65169>\
**Category:** Uncategorized\
**Created:** [September 23, 2004, 4:48pm UTC](https://forum.kirupa.com/t/external-text-inside-movieclip/65169 "2004-09-23T16:48:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luthan](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@luthan](https://forum.kirupa.com/u/luthan)\
**Post date:** [September 23, 2004, 4:48pm UTC](https://forum.kirupa.com/t/external-text-inside-movieclip/65169/1 "2004-09-23T16:48:02Z")

</div>

I think this has been discussed before but I just cant find it in this forum.

I am trying to load external text from a file to a text box that is inside a movie clip

This is AS thats in the main timeline. The text just wont load. The movieclip name is ‘main’ and text box name is ‘newstext’.  
i tried with using \_root ajlso and that didn’t work either.

```auto

loadtext = new LoadVars();
loadtext.load("newstext.txt");
loadtext.onLoad = function() {
        _root.main.newstext.html = true;
        _root.main.newstext.htmlText = this.newstext;
    }

```

any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 23, 2004, 5:34pm UTC](https://forum.kirupa.com/t/external-text-inside-movieclip/65169/2 "2004-09-23T17:34:03Z")

</div>

I _think_ you can write this:

\_root.main.newstext.htmlText = this.loadtext.newstext;

or

\_root.main.newstext.htmlText = loadtext.newstext;

Not sure if you need “this” or not. Give it a shot
