# Help with an Array

**URL:** <https://forum.kirupa.com/t/help-with-an-array/198899>\
**Category:** flash\
**Created:** [August 29, 2006, 2:52pm UTC](https://forum.kirupa.com/t/help-with-an-array/198899 "2006-08-29T14:52:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerahn](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@aerahn](https://forum.kirupa.com/u/aerahn)\
**Post date:** [August 29, 2006, 2:52pm UTC](https://forum.kirupa.com/t/help-with-an-array/198899/1 "2006-08-29T14:52:31Z")

</div>

Hello,  
I am writing a script to shift the MC’s in my movie to the right and down when I run a PrintJob(since it left justifies everything). I have created an array with all my MC’s and then I am looping through and adding 40 to the \_x and \_y values. Problem is it is not working because when I loop through “shiftPrintClips\*.\_x” comes out as undefined when I trace it. Any idea why? I can trace “shiftPrintClips\*” and the value of the MC shows fine, just not when I try to get the location. (it works when I hard code the MC name):h:  
Thanks!!

Here’s the code:

[COLOR=red]var shiftPrintClips:Array = [“top\_mc”, “audio\_onoff\_mc”, “heading\_txt”, “indexName\_mc”, “narration\_mc”, “mediaControlOutlines\_mc”, “pageNumber\_mc”, “glossary\_mc”, “presentation\_mask\_mc”, “back\_mc”, “glossary\_btn”, “index\_read\_mc”, “print\_button”, “print\_btn”, “next\_mc”];[/COLOR]  
[COLOR=red]f[/COLOR]  
[COLOR=red]or (i=0; i\<shiftPrintClips.length; i++) {  
shiftPrintClips\*.\_x = shiftPrintClips\*.\_x + 40;  
shiftPrintClips\*.\_y = shiftPrintClips\*.\_y + 40;  
trace(top\_mc.\_x);  
trace(shiftPrintClips\*);  
}[/COLOR]
