# Controlling Dynamic creations

**URL:** <https://forum.kirupa.com/t/controlling-dynamic-creations/225762>\
**Category:** flash\
**Created:** [May 15, 2007, 2:08pm UTC](https://forum.kirupa.com/t/controlling-dynamic-creations/225762 "2007-05-15T14:08:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevmann16](https://avatars.discourse-cdn.com/v4/letter/k/2acd7d/32.png) [@kevmann16](https://forum.kirupa.com/u/kevmann16)\
**Post date:** [May 15, 2007, 2:08pm UTC](https://forum.kirupa.com/t/controlling-dynamic-creations/225762/1 "2007-05-15T14:08:18Z")

</div>

This seems impossible at the moment but I have this code:

```auto
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.
