mdeligt
03-11-2005, 10:19 AM
Hi, I try to make a sort of 'textviewer' to read variables from a textfile. How can I makea button 'scrolling' through' the existing variables. So, a button loading var2, then var3 etc. in the same textfield. Till now I got this: (de vars are newsheadline1,..2,..3 etc and newsitem1,..2,..3 etc.)
myButton.onRelease = function() {
loadText = new LoadVars();
loadText.load('text.txt');
loadText.onLoad = function() {
_root.newsheadline.text = this.newsheadline1;
_root.newsitem.text = this.newsitem1;
}
}
thanx in advance
myButton.onRelease = function() {
loadText = new LoadVars();
loadText.load('text.txt');
loadText.onLoad = function() {
_root.newsheadline.text = this.newsheadline1;
_root.newsitem.text = this.newsitem1;
}
}
thanx in advance