# Array of movieclips

**URL:** <https://forum.kirupa.com/t/array-of-movieclips/31004>\
**Category:** flash\
**Created:** [September 17, 2003, 6:09am UTC](https://forum.kirupa.com/t/array-of-movieclips/31004 "2003-09-17T06:09:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KazchiX](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@KazchiX](https://forum.kirupa.com/u/KazchiX)\
**Post date:** [September 17, 2003, 6:09am UTC](https://forum.kirupa.com/t/array-of-movieclips/31004/1 "2003-09-17T06:09:59Z")

</div>

How can I create an array of movieclips using for loop.

There’s a dozen of movieclips named image1,image2…  
when I create an array like;

```php
images = [image1,image2,....image20];

```

and call  
images[0].onRelease = somefunction;

It works perfectly fine. But if I use for loop like;

```php
var images = new Array(16);
for(i=0;i<16;i++){
	images* = "pict"+(i+1);
}

```

It gives me alot of undifined message;  
Why dose this happen?

-KazchiX
