well, go basics!
simple question, I’ve a TextField nested inside some MovieClips in the stage, and I want to set the text, like so:
[AS]this.root_mc.child_0_mc.textF_txt.text = ‘123’;[/AS]
If I want to put this inside a for loop, would this code be correct:
[AS]
for (var i:int = 0; i<10; i++)
{
this.root_mc[‘child_’+i+’_mc’].textF_txt.text = ‘123’;
}
[/AS]
although it works the idea that it gives is that I could be calling for an array called ‘root_mc’ inside the for loop, and not referencing a MovieClip in stage. How far am I from reality?! An alternative way to do this would be?..
thanks