Dynamic textbox name

Ive got this problem, with setting the text, of some textboxes made in a for loop. This is the code:
[AS]for (i = 0; i<lengthXML; i++){
createTextField(“textbox”+i, i, 100, 100, 100, 20);
textbox.text = question;
}[/AS]
Now the problem is, how do i get “textbox”, to be called the same as the one created? Ive tried “‘textbox’+i.text = question”, but it just gives me an error.