i created an MC that is made of dynamic mc clips that include a textfield named combo_txt, it is the same clip that i put on stage with add child and i dont knowhow to refer to them i, think i gave them different named but still cant reach them:
function makeABox():void
{
for (var i:Number = 0; i<8; i++)
{
var newBox:MCB = new MCB();
newBox.name = "mc" + i;
panel.addChild(newBox);
allMCB*=newBox;
newBox.x = heading.x;
newBox.y = (newBox.y+newBox.height)*i;
}
}
makeABox();
when i click on each of them i get the name i gave it but i want each clip to have a different text. this doesnt work:
var tempname:String;
tempname=allMCB[0].name
panel.tempname.combo_txt.text="hhh"
what am i doing wrong?