# Arrays of movieClips

**URL:** <https://forum.kirupa.com/t/arrays-of-movieclips/242478>\
**Category:** flash\
**Created:** [October 26, 2007, 12:16pm UTC](https://forum.kirupa.com/t/arrays-of-movieclips/242478 "2007-10-26T12:16:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daffy\_dowden](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/daffy_dowden/32/2371_2.png) [@daffy\_dowden](https://forum.kirupa.com/u/daffy_dowden)\
**Post date:** [October 26, 2007, 12:16pm UTC](https://forum.kirupa.com/t/arrays-of-movieclips/242478/1 "2007-10-26T12:16:57Z")

</div>

I’m trying to create something (which has probably been created a 1000 times before) that will fade in and out a series of images. I load the images into my movie and then I want to make some action script to loop through them to fadeIn/Out.

So to begin with I want to store all the image names in an array and then loop through this. But I’m having problems accessing the movie clips from the array. Where am I going wrong?

```auto

var images:Array = new Array();
images = [wine_mc, sunset_mc, poppies_mc, pool_mc, eastView_mc]

for(image in images) {
    trace(eval(image)._alpha)
    //eval(image)._alpha = 0;
}
trace(wine_mc._alpha)

```

I get undefined from my output window except for the last line of code, which works correctly.
