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…)
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);
}