# Manipulating array

**URL:** https://forum.kirupa.com/t/manipulating-array/223531
**Category:** Uncategorized
**Created:** [April 23, 2007, 4:55pm UTC](https://forum.kirupa.com/t/manipulating-array/223531 "2007-04-23T16:55:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![saeta70](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@saeta70](https://forum.kirupa.com/u/saeta70)
#### Post date: [April 23, 2007, 4:55pm UTC](https://forum.kirupa.com/t/manipulating-array/223531/1 "2007-04-23T16:55:05Z")

</div>

All I’m trying to do is have a bunch of movie clips appear. Their alpha  
increases from 0 to 100.

Only one movie clip is appearing with the code I’ve included here.

This is AS 2 and I’m working with Flash 8 Professional. Thanks for the help.

for (var i = 1; i\<62; i++) {  
var ball:MovieClip = attachMovie(“drone”, “drone”+i, i);  
ball.\_alpha = 0;  
ball.\_x = Math.random()\*Stage.width;  
ball.\_y = Math.random()\*Stage.height;  
//------------ change to visible -----------------------  
if (ball.\_alpha == 0) {  
onEnterFrame = function () {  
ball.\_alpha += 2;  
};  
}  
}
