# Premade textfield arrays

**URL:** <https://forum.kirupa.com/t/premade-textfield-arrays/249394>\
**Category:** flash\
**Created:** [January 18, 2008, 7:56am UTC](https://forum.kirupa.com/t/premade-textfield-arrays/249394 "2008-01-18T07:56:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Himegoto](https://avatars.discourse-cdn.com/v4/letter/h/e9bcb4/32.png) [@Himegoto](https://forum.kirupa.com/u/Himegoto)\
**Post date:** [January 18, 2008, 7:56am UTC](https://forum.kirupa.com/t/premade-textfield-arrays/249394/1 "2008-01-18T07:56:14Z")

</div>

This is my first ever attempt at teaching myself flash cs3 and actionscript 3, so please forgive me if this is stupid.

I have a number of premade text fields with instance names of myText0\_txt, myText1\_txt, etc. I’d rather not create them dynamically for easy changes later to the layout and (supposedly) simplicity.

So anyway, this is basically what I tried:

```auto
 
for (i=0; i<48; i++)
{
 myText*_txt.text = "I am #"+i;
}

```

at which point flash slapped me with an error and called me names.  
After searching around for ideas (being a novice and all, this happens alot) I came up with:

```auto
 
for (i=0; i<48; i++)
{
 this[myText*_txt].text = "I am #"+i;
}

```

and of course flash continued to mock me.
