# External text won't scroll

**URL:** <https://forum.kirupa.com/t/external-text-wont-scroll/38223>\
**Category:** Uncategorized\
**Created:** [December 19, 2003, 5:05pm UTC](https://forum.kirupa.com/t/external-text-wont-scroll/38223 "2003-12-19T17:05:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustinM](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@JustinM](https://forum.kirupa.com/u/JustinM)\
**Post date:** [December 19, 2003, 5:05pm UTC](https://forum.kirupa.com/t/external-text-wont-scroll/38223/1 "2003-12-19T17:05:36Z")

</div>

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;  
}  
};  
loadText.load(“brent.txt”);

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

---

<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:** [December 22, 2003, 7:17pm UTC](https://forum.kirupa.com/t/external-text-wont-scroll/38223/2 "2003-12-22T19:17:08Z")

</div>

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](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?

---

<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:** [December 22, 2003, 9:35pm UTC](https://forum.kirupa.com/t/external-text-wont-scroll/38223/3 "2003-12-22T21:35:43Z")

</div>

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

load\_text = function(textfile){  
loadText = new loadVars();  
loadText.load(textfile);  
//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!
