for (i=1; i<=10; i++) { _root.createTextField("text"+i, i, 10, i*20,100, 20); _root["text"+i].border = 1; _root["text"+i].text = i; }