# How can i reach my dynamic created mc's?

**URL:** <https://forum.kirupa.com/t/how-can-i-reach-my-dynamic-created-mcs/325229>\
**Category:** Uncategorized\
**Created:** [October 3, 2011, 5:57pm UTC](https://forum.kirupa.com/t/how-can-i-reach-my-dynamic-created-mcs/325229 "2011-10-03T17:57:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivant](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@sivant](https://forum.kirupa.com/u/sivant)\
**Post date:** [October 3, 2011, 5:57pm UTC](https://forum.kirupa.com/t/how-can-i-reach-my-dynamic-created-mcs/325229/1 "2011-10-03T17:57:47Z")

</div>

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:

```auto

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:

```auto
var tempname:String;
tempname=allMCB[0].name
panel.tempname.combo_txt.text="hhh"

```

what am i doing wrong?
