# Problem with dynamic movieclip referencing

**URL:** <https://forum.kirupa.com/t/problem-with-dynamic-movieclip-referencing/302978>\
**Category:** Uncategorized\
**Created:** [January 11, 2010, 11:00pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-movieclip-referencing/302978 "2010-01-11T23:00:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![btween](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@btween](https://forum.kirupa.com/u/btween)\
**Post date:** [January 11, 2010, 11:00pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-movieclip-referencing/302978/1 "2010-01-11T23:00:19Z")

</div>

I cannot assign \_x and \_y coordinates in a movie clip dynamically. For example:

for (i=1; i\<=5; i++) {  
myThumb\_mc = “thumb” + i;  
myThumb\_mc.\_x = Stage.width/2;  
myThumb\_mc.\_y = Stage.height/4;  
}

but if I do:

thumb1.\_x = Stage.width/2;  
this works.

what am I doing incorrectly here?
