# \[FMX\] naming the mcs from an array w/ attachMovie

**URL:** <https://forum.kirupa.com/t/fmx-naming-the-mcs-from-an-array-w-attachmovie/8778>\
**Category:** flash\
**Created:** [November 28, 2002, 9:31am UTC](https://forum.kirupa.com/t/fmx-naming-the-mcs-from-an-array-w-attachmovie/8778 "2002-11-28T09:31:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_X](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@Mr\_X](https://forum.kirupa.com/u/Mr_X)\
**Post date:** [November 28, 2002, 9:31am UTC](https://forum.kirupa.com/t/fmx-naming-the-mcs-from-an-array-w-attachmovie/8778/1 "2002-11-28T09:31:36Z")

</div>

ok, that’s some basic question but it’s 4 am, I can’t find the answer in the tutz and I’m starting to get a headache…  
I’m creating some mc’s on the stage with the attachMovie function in a loop. I have no problem naming them like that:

foo.attachMovie(“myClip”, “myClip”+i, 200+i);

But I need to name them with part of an array like that:

foo.attachMovie(“myClip”, “myClip”+array\*+"\_mc", 200+i);

I thought that would work but I guess my synthax is wrong… How do you mix strings and arrays elements inside the () of the attachMovie?

I need to get something like: myClipArrayElement1\_mc for the name of the attached movies…

THX! 🙂
