This seems impossible at the moment but I have this code:
for (i =0; i < txB_NumberOf; i++){
var TextNames:Array = new Array;
TextNames* = "text_txt" + i
_root.createTextField(TextNames*, i, 0, 0, 300, 100);
**text_txt1.text** = "test text;
;
The code creates a number of text fields based on the number in the variable “txB_NumberOf” each text box gets named text_txt0, text_txt1, text_txt2, text_txt3 etc by storing the names in an array called TextNames and using it as the name field in the createTextField part.
The bit in bold I want to be the name of the newly created Textfield each time through the loop. So instead of just one text box having “test text” in it each textbox gets it.
I read somewhere that … this[TextNames*].text = “test text” would work but it doesn’t. I’ve tried everything else I could think of without any luck.