# Attach Movies from array positions?

**URL:** https://forum.kirupa.com/t/attach-movies-from-array-positions/240893
**Category:** Uncategorized
**Created:** [October 7, 2007, 11:24pm UTC](https://forum.kirupa.com/t/attach-movies-from-array-positions/240893 "2007-10-07T23:24:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![booeriis](https://avatars.discourse-cdn.com/v4/letter/b/919ad9/32.png) [@booeriis](https://forum.kirupa.com/u/booeriis)
#### Post date: [October 7, 2007, 11:24pm UTC](https://forum.kirupa.com/t/attach-movies-from-array-positions/240893/1 "2007-10-07T23:24:51Z")

</div>

hi everyone  
i’m trying to attach a movie clip, or load a movie clip by freffereing to it at a position in an Array, and it’s giving me a headache.

example: i want to attach the movie called “movieTwo” from the library to the stage by using it’s position in this array.

myArray = [“movieOne”, “movieTwo”, “movieThree”]

\_root.attachMovie(\_root.myArray[1]);

or

\_root.loadMovie(\_root.myArray[1].swf);

none of these work, not only cos they may be written slightly wrong here, but i con’t seem to be able to refer to a movie clip by using the position in an array!

anyone know how i could do this.

thanks  
Booeriis
