External text won't scroll

I’ve created a dynamic text box with buttons to scroll the text up and down. I’m not using the component that comes in flash mx. If I hard code text into the box, my scrolling functionality works. Now I’ve tried to take it a step further and load the text from an external .txt file using the following code:

loadText = new LoadVars();
loadText.onLoad = function(success) {
if (success) {
textcontainer.scroller.condenseWhite = true;
textcontainer.scroller.html = 1;
textcontainer.scroller.htmlText = this.mytext;

It successfully loads the text but won’t scroll. Any ideas where I could start?

I’m still having big problems with this. I’ve tried all variations that i can think of and can’t get it to work. I used this tutorial to use self-made buttons to scroll text http://www.kirupa.com/developer/flash5/scrolltext.htm

Now I’ve tried loading the text using my method and any variations suggested and I can’t get this text to scroll once set to htmltext. Anybody have an example they could post maybe?

Okay guys, I got it to work. I used the code posted by Maizoon as follows:

load_text = function(textfile){
loadText = new loadVars();
//creating the loadVarsText function
loadText.onLoad = function() {
textcontainer.scroller.html = true;
textcontainer.scroller.htmlText = this.myText;

Thanks for all of the help. Just when you think you’ve tried everything…you try something else and it works. Thanks again!