gencoglu
December 27th, 2008, 05:44 PM
Hi, I have four textboxes on the stage and I need to display the data I get from a external text file...but I seem to have problem in seting a for loop..
will you please help?
thanks
on(press){
loadText = new LoadVars();
loadText.load("data.txt");
loadText.onLoad = function() {
for(i=1;i<=4;i++){
name[i].text = this.name[i];
}
email.text = this.email;
location.text = this.location;
};
}
will you please help?
thanks
on(press){
loadText = new LoadVars();
loadText.load("data.txt");
loadText.onLoad = function() {
for(i=1;i<=4;i++){
name[i].text = this.name[i];
}
email.text = this.email;
location.text = this.location;
};
}