# Access text box in multiple movieclips?

**URL:** <https://forum.kirupa.com/t/access-text-box-in-multiple-movieclips/312923>\
**Category:** Uncategorized\
**Created:** [August 16, 2010, 5:06am UTC](https://forum.kirupa.com/t/access-text-box-in-multiple-movieclips/312923 "2010-08-16T05:06:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samboston](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@samboston](https://forum.kirupa.com/u/samboston)\
**Post date:** [August 16, 2010, 5:06am UTC](https://forum.kirupa.com/t/access-text-box-in-multiple-movieclips/312923/1 "2010-08-16T05:06:08Z")

</div>

hi all,  
I am new to actionscript.  
I have a movie clip (mc)in my library. The Movieclip has a dynamic text whose instance is “dynamic\_txt”.

I need to create copies of movieclip and each dynamic\_txt within that mc, want to assign a value.

for (i=1 , i\< 20, i++) {  
mymc = mc add i;

duplicatemovieclip(mc, mymc,10);

\_level0.mymc.dynamic\_txt.text = i

}

However, "\_level0.mymc.dynamic\_txt.text = i " is giving me compilation error.  
will it be

\_level0.[‘mymc’].dynamic\_txt.text = i

or

\_level0.‘mymc’.dynamic\_txt.text = i

or anything else.

I have tried few combination and either its compilation error or not working as requried. Pls help.  
thanks  
Sam
