# \[FMX\] Loading Text is good, But scroller doesn't seem to scroll the whole .txt file

**URL:** https://forum.kirupa.com/t/fmx-loading-text-is-good-but-scroller-doesnt-seem-to-scroll-the-whole-txt-file/8351
**Category:** flash
**Created:** [November 19, 2002, 6:37am UTC](https://forum.kirupa.com/t/fmx-loading-text-is-good-but-scroller-doesnt-seem-to-scroll-the-whole-txt-file/8351 "2002-11-19T06:37:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kruza](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@kruza](https://forum.kirupa.com/u/kruza)
#### Post date: [November 19, 2002, 6:37am UTC](https://forum.kirupa.com/t/fmx-loading-text-is-good-but-scroller-doesnt-seem-to-scroll-the-whole-txt-file/8351/1 "2002-11-19T06:37:28Z")

</div>

> on (release) {  
> scrollbar.visible = true  
> loadVarsText = new loadVars();  
> loadVarsText.load(“News.txt”);  
> // assign a function which fires when the data is loaded:  
> loadVarsText.onLoad = function(success) {  
> if (success) {  
> trace(“done loading”);  
> // Now that we know the data is loaded,  
> // set the text content of the Text Field  
> // with the instance name “scroller” equal to the  
> // contents of the variable  
> textfield1.text = this.var1;  
> } else {  
> trace(“not loaded”);  
> }  
> };  
> }

Using that Code i load a .txt file and the scroller works but only about 1/4 of the whole .txt file…

can someone help me?

---

<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: [November 19, 2002, 7:04am UTC](https://forum.kirupa.com/t/fmx-loading-text-is-good-but-scroller-doesnt-seem-to-scroll-the-whole-txt-file/8351/2 "2002-11-19T07:04:38Z")

</div>

Do you have an “&” anywhere in your text file?

Flash coverts this as a symbol meaning new variable and will stop reading after that point.

Example being

var1=blahblahblah  
&var2 = blahbleeblee  
&var3 = bleeblahblee

---

<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: [November 19, 2002, 2:06pm UTC](https://forum.kirupa.com/t/fmx-loading-text-is-good-but-scroller-doesnt-seem-to-scroll-the-whole-txt-file/8351/3 "2002-11-19T14:06:45Z")

</div>

thanks a lot!

the & was the problem…

---

<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: [November 19, 2002, 6:34pm UTC](https://forum.kirupa.com/t/fmx-loading-text-is-good-but-scroller-doesnt-seem-to-scroll-the-whole-txt-file/8351/4 "2002-11-19T18:34:52Z")

</div>

No problem 🙂
