In actionscript 2.0 i could reach textfield loacted in a movieclip. Suppose you have a movieclip with a instance name “mc”, and this mc contains two textfields with instance names of a_txt and b_txt. if you want to access these text with a loop you can use
for (var each in mc) {
trace(each);
mc[each].text = "foo";
}
//Output will be a_txt, b_txt.
But if you do the same in actionscript 3.0, in output window nothing appears. Why?
Thank you in advance.