Ok, I’m missing something and need a second brain. I have a single movie with a script that duplicates it :
arrows = 15;
do {
duplicateMovieClip(arrow, “arrow”+k, k);
k++;
} while (k != arrows);
Then on the movie object itself I have the script that creates a left to right scrolling movement.
onClipEvent (load) {
//variables
width = 500;
height = 100;
//random x,y, and alpha
this._yscale = this._xscale=50+Math.random()100;
this._alpha = 100;
//random x and y for arrows
this._y = height+Math.random()-(3*height);
this._x = -10+Math.random()*width;
//speed and trigonometric value
i = 1+Math.random()3;
k = 3+Math.random()-3;
}
onClipEvent (enterFrame) {
// horizontal movement
this._x += i;
this._alpha -= i;
// remove clips when they misbehave (overstep boundaries)
if (this._y>(height+50)) {
this._y = -45;
this._x = Math.random()*width*2;
}
if (this._y<-50) {
this._y = height+45;
this._x = Math.random()*width*2;
}
if (this._x>=width) {
this._x = -50;
this._y = -height+Math.random()*(3*height);
}
}
Now it works great except I want the movies to fade out incrementally but at an individual rate from the time of their creation. As the code stands now, they fade out as one group at the same rate, and then _alpha stays at 0. No new movies, no new arrows, no cool effect.
I know my this._alpha -= i; works fine, I just have it in the wrong place in the script. I need it to act individually on each new movie, not on the movies. Please help!!!
–Scott