Duplicate textbox

hey… I want to duplicate a textbox and still have it in the root, thats why I don’t use duplicateMovieClip… can anyone tell me a cool method on how to duplicate or make input boxes, that actually have seperate var names?

I was thinking making a loop, and the set var name would be “ord” + i… anyone follow? Sorry for being so point

nvm friend helped me out

num_textfields = 10;
fields_array = Array();
for (i=0; i<num_textfields; i++) {
_root.createTextField(“textfield”+i+"_txt", i, 0, i*30, 200, 25);
_root[“textfield”+i+"_txt"].type = “input”;
_root[“textfield”+i+"_txt"].border = 1;