# Loop through textboxex!

**URL:** <https://forum.kirupa.com/t/loop-through-textboxex/278339>\
**Category:** Uncategorized\
**Created:** [December 27, 2008, 10:44pm UTC](https://forum.kirupa.com/t/loop-through-textboxex/278339 "2008-12-27T22:44:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gencoglu](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gencoglu](https://forum.kirupa.com/u/gencoglu)\
**Post date:** [December 27, 2008, 10:44pm UTC](https://forum.kirupa.com/t/loop-through-textboxex/278339/1 "2008-12-27T22:44:24Z")

</div>

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

```php

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;
};
}

```
