I use loadVars like;
home = new LoadVars();
homeURL = “home.txt”;
home.load(homeURL);
Then I take part of the loadVars file and make it a varible;
home.onLoad = function(success) {
if (success) {
var text = eval(“this.text”);
home_txt = text;
}
See the last line of code, this is the only time this code will populate my textbox with the text from my home.txt.
If I erase home_txt = text; and put it in a button the listbox does
not populate, and if I run a trace command on home_txt it come out undefined.
So what am I doing wrong?