# How can i create an array of Textfields? \[QUICK\]

**URL:** <https://forum.kirupa.com/t/how-can-i-create-an-array-of-textfields-quick/162497>\
**Category:** Uncategorized\
**Created:** [September 13, 2005, 9:11pm UTC](https://forum.kirupa.com/t/how-can-i-create-an-array-of-textfields-quick/162497 "2005-09-13T21:11:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeSh](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@KeSh](https://forum.kirupa.com/u/KeSh)\
**Post date:** [September 13, 2005, 9:11pm UTC](https://forum.kirupa.com/t/how-can-i-create-an-array-of-textfields-quick/162497/1 "2005-09-13T21:11:15Z")

</div>

Hi, i’m using this code

```auto
txts = new Array(title,title2);
for(i=0;i<2;i++)
{
	txts*.text=raiz.childNodes[0].childNodes[3].firstChild.childNodes[0];
}

```

But that does not work…Title and title 2 are two dynamic textfield that i’ve created in my scene! The problem seems to be the declaration…Does flash allow casting? cuz i tried to cast the “TextField” option and that didn’t work as well.
