# Variables as instance names

**URL:** <https://forum.kirupa.com/t/variables-as-instance-names/191441>\
**Category:** flash\
**Created:** [June 20, 2006, 4:19pm UTC](https://forum.kirupa.com/t/variables-as-instance-names/191441 "2006-06-20T16:19:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alkalinetb](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@alkalinetb](https://forum.kirupa.com/u/alkalinetb)\
**Post date:** [June 20, 2006, 4:19pm UTC](https://forum.kirupa.com/t/variables-as-instance-names/191441/1 "2006-06-20T16:19:02Z")

</div>

Hi,

I have created movie clips using loops that names them box1, box2, box3… via

i = i + 1;  
duplicateMovieClip (\_root.box, “box” + i, i);

but i then want to edit a textbox which is rooted inside each movie but related to the movieclip just produced. so if box1 had just been produced then:

box1.textbox.text = " E cell = "+j+“V”;

is done so effectively i am looking to do:

box+i.textbox.text = " E cell = "+j+“V”;

but this doesnt work. Does anyone have any ideas how i can do this?

sorry if this is confusing.

Thank you.
