# Targeting a Textfield Created with Array

**URL:** <https://forum.kirupa.com/t/targeting-a-textfield-created-with-array/300314>\
**Category:** flash\
**Created:** [November 19, 2009, 2:24am UTC](https://forum.kirupa.com/t/targeting-a-textfield-created-with-array/300314 "2009-11-19T02:24:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [November 19, 2009, 2:24am UTC](https://forum.kirupa.com/t/targeting-a-textfield-created-with-array/300314/1 "2009-11-19T02:24:54Z")

</div>

I need to be able to set a property of the 3rd textfield created within this for loop:

```auto

    for (var i:int = 0; i < menuArray.length; i++) {
        menuText = new TextField;
        menuText.name = "navBttn_" + i;
        menuText.x = xCoord;
        menuText.y = (i * 20) + yCoord;
        //
        menuText.text = menuArray*;
        //
        addChild(menuText);
        //
        menuText.addEventListener(MouseEvent.ROLL_OVER, MainRollOver);
        menuText.addEventListener(MouseEvent.ROLL_OUT, MainRollOut);
        menuText.addEventListener(MouseEvent.CLICK, onMainSelectItem);
        
    }
    //Change property of 3rd textfield here

```

What’s the best way to target that object?
