# AS2 to AS3 textfield+Array Question

**URL:** <https://forum.kirupa.com/t/as2-to-as3-textfield-array-question/312280>\
**Category:** flash\
**Created:** [July 29, 2010, 3:58pm UTC](https://forum.kirupa.com/t/as2-to-as3-textfield-array-question/312280 "2010-07-29T15:58:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![okashira](https://avatars.discourse-cdn.com/v4/letter/o/71c47a/32.png) [@okashira](https://forum.kirupa.com/u/okashira)\
**Post date:** [July 29, 2010, 3:58pm UTC](https://forum.kirupa.com/t/as2-to-as3-textfield-array-question/312280/1 "2010-07-29T15:58:01Z")

</div>

Hey guys and gals!

Do you remember in AS2 you can do something that looks like this…

```auto

for(var i:int = 0; i<5; i++){
// i have 5 textfields named myTextfield1, myTextfield2...
//and i want those textfields to show myArray's value correspondingly
    myTextField*.text = myArray*;
}

```

So my question is how do I write  
_myTextField.text = myArray_;\*\*  
in AS3? and what is that called?

Thanks!
