Loop through textboxex!

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*.text = this.name*;
 
 }
 email.text = this.email;
 location.text = this.location;
};
}