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?