# Loading external txt into a textbox with a scroller

**URL:** <https://forum.kirupa.com/t/loading-external-txt-into-a-textbox-with-a-scroller/20463>\
**Category:** flash\
**Created:** [May 8, 2003, 8:56pm UTC](https://forum.kirupa.com/t/loading-external-txt-into-a-textbox-with-a-scroller/20463 "2003-05-08T20:56:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![glitch007](https://avatars.discourse-cdn.com/v4/letter/g/ad7895/32.png) [@glitch007](https://forum.kirupa.com/u/glitch007)\
**Post date:** [May 8, 2003, 8:56pm UTC](https://forum.kirupa.com/t/loading-external-txt-into-a-textbox-with-a-scroller/20463/1 "2003-05-08T20:56:42Z")

</div>

The tutorial i’m referring to is:  
[http://www.kirupa.com/developer/mx/dynamic\_scroller.htm](http://www.kirupa.com/developer/mx/dynamic_scroller.htm)

There are two options for the text box which won’t work:  
Full Justify and Render Text as HTML

Could anyone tell me why?

I kinda got the html rendering part working:

You have to set a VAR property for the textbox (let’s say “textBoxText”)

so the line in the frame actions becomes:

```auto

loadText.onLoad = function() {
	textBoxText = this.kirupatext;
	//as opposed to textBox.text = this.kirupatext;
};

```

But now something else messes up: the scrollbars, they won’t do anything

To sum it up:  
The “\<\>” button doesn’t work  
when i use “textBox.text = this.kirupatext” but the scrollbar does

The “\<\>” button works when I set a var property on the textbox and use “textBoxText = this.kirupatext” but the scrollbar doesn’t

Full Justify still doesn’t work in both these cases

why is it that the scrollbars don’t work when I set a var property?

---

<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:** [May 8, 2003, 9:29pm UTC](https://forum.kirupa.com/t/loading-external-txt-into-a-textbox-with-a-scroller/20463/2 "2003-05-08T21:29:24Z")

</div>

because the only way the sbars get told the text has changed in MX is by using textfield.text=varWithNewContent; to retain html-formating, use textfield.htmlText=varWithNewContent instead.  
Never used full justify, no idea…

---

<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:** [May 9, 2003, 1:25am UTC](https://forum.kirupa.com/t/loading-external-txt-into-a-textbox-with-a-scroller/20463/3 "2003-05-09T01:25:54Z")

</div>

Alright, that’s exactly what I wanted, thanks alot. I should’ve read the reference more thoroughly
