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

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?

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

thanks a lot!

the & was the problem…

No problem :slight_smile: