# PAssing a variable into an MC created with attachMovie

**URL:** <https://forum.kirupa.com/t/passing-a-variable-into-an-mc-created-with-attachmovie/235570>\
**Category:** flash\
**Created:** [August 13, 2007, 12:17am UTC](https://forum.kirupa.com/t/passing-a-variable-into-an-mc-created-with-attachmovie/235570 "2007-08-13T00:17:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbuna](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mbuna](https://forum.kirupa.com/u/mbuna)\
**Post date:** [August 13, 2007, 12:17am UTC](https://forum.kirupa.com/t/passing-a-variable-into-an-mc-created-with-attachmovie/235570/1 "2007-08-13T00:17:19Z")

</div>

I am creating movie clips with a for loop using attachMovie, I would like to pass a variable into the clip itself at the time of it’s creation. It seems simple enough, but my little brain is imploding…

So basically I got an MC: “clip”+i, which I would like to pass a variable (from an array), for it to use on it’s own timeline. I want the next clip to be able to use the next variable in the array in it’s own timeline.

thanks 🙂
