# Access separate textfield spread over timeline, better way?

**URL:** <https://forum.kirupa.com/t/access-separate-textfield-spread-over-timeline-better-way/328681>\
**Category:** flash\
**Created:** [June 5, 2012, 9:15pm UTC](https://forum.kirupa.com/t/access-separate-textfield-spread-over-timeline-better-way/328681 "2012-06-05T21:15:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lnsiu](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@lnsiu](https://forum.kirupa.com/u/lnsiu)\
**Post date:** [June 5, 2012, 9:15pm UTC](https://forum.kirupa.com/t/access-separate-textfield-spread-over-timeline-better-way/328681/1 "2012-06-05T21:15:42Z")

</div>

Is there a more elegant way to access different textfields spread over a timeline than the example I have below?

I have a timeline with many different textfields that is non-present in most other frames. They occupy a frame here and there. I can’t just access them from the mc holding them, so I step one frame at a time, trying to find the correct textfield.

Is there a better way? more direct? (no, not create them dynamically…)

```auto
for(var i=0;i<arr.length;i++) {
        for(var j=0;j<textFields.totalFrames;j++)
        {
            try{
                var txt:TextField = textFields["t"+(i+1)] as TextField;
            }catch(e:Error){
                trace("no textfield on this frame, trying next frame");
            }
            
            textFields.nextFrame();
        }
        textFields.gotoAndStop(1);
    }

```
