Assinging text in a for loop

In the for loop below I use the “i” var to work with 5 movieclips. The problem is that I also want to use the same “i” var to assign text to a textfield but I can’t figure out how to do it. ([COLOR=#ff0000]tf.text = String(“txtInfocon”+i);[/COLOR])


var numbChildren:uint = this.numChildren + 1;
var txtInfocon5:String;
var txtInfocon4:String;
var txtInfocon3:String;
var txtInfocon2:String;
var txtInfocon1:String;
var loaded:XML = new XML();
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, handleXML);
loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
loader.load(new URLRequest("infocon.xml"));
var myTextFields:Array = [];
 

function handleXML(evt:Event)
{
 loaded = XML(evt.target.data);
 txtInfocon1 = loaded.infocon1;
 txtInfocon2 = loaded.infocon2;
 txtInfocon3 = loaded.infocon3;
 txtInfocon4 = loaded.infocon4;
 txtInfocon5 = loaded.infocon5;
 for (var i:uint = 1; i < numbChildren; i++)
 {
  this["mcInfocon" + i].buttonMode = true;
  this["mcInfocon" + i].useHandCursor = true;
  this["mcInfocon" + i].mouseChildren = false;
  this["mcInfocon" + i].x = 20;
  this["mcInfocon" + i].addEventListener(MouseEvent.ROLL_OVER, handleHover);
  this["mcInfocon" + i].addEventListener(MouseEvent.ROLL_OUT, handleHoverOut);
  var tf:TextField = new TextField();
  tf.width = 500;
  //tf.autoSize = TextFieldAutoSize.LEFT;
  tf.x = this["mcInfocon" + i].x + 100;
  tf.y = this["mcInfocon" + i].y;
  [COLOR=red]tf.text = String("txtInfocon"+i);
[/COLOR]  tf.wordWrap = true;
  //tf.setTextFormat( formatNormal );
  stage.addChild(tf);
  //allows you to later reference each TF using array index.
  myTextFields.push(tf);
 }
}
function handleHover(evt:MouseEvent):void
{
 trace("You are over "+evt.currentTarget.name);
}
function handleHoverOut(evt:MouseEvent):void
{
 trace("You rolled off "+evt.currentTarget.name);
}
function onIOError(evt:IOErrorEvent):void
{
 trace("There is an error loading the file. Please contact suppport personell for this course. "+evt.text);
}