title: Creating multiple TextInput fields in for loop
body: <p>I need to loop through an array and for each element create a textfield. My problem is how to create a new identifier for each new TextInput</p>
  
  <p>this is my code;</p>
  
  <pre><code>var count:Number = 0;
  for (var i:String in columnsData)
  {
  var myTI:TextInput = new TextInput();
  myTI.width = 70;
  myTI.height = 25;
  myTI.text = columnsData[i];
  myTI.name = "myTI" + count;
  addChild(myTI);
  count++;    
     }
  </code></pre>
  
  <p>all this does however is overwrite the previously created TextInput field, any ideas?</p>