External text inside movieclip

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.


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

any ideas?

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