Arrays and programatic dynamic textfields

hi

i have a bit problem of saving the programaticallly created textfields in the arrays. MY code goes on like this

for(i=0;i<15;i++)
{
s*=_root.createTextField(“work”+i+"_txt",100i,0,40i,100,50);
}
s[1].text=“my name is khawar shehzad”;

but this works when i create a textfield and then assign it to the arrays like this.

_root.createTextField(“myTxt”,2,0,0,100,50);
arr=[];
arr[0]=myTxt;
arr.text=“my name is khawar shehzad”;

i want to create the textFields using for loop and then assign them to the arrays using for loop.

cheers

khawar