this board is f**ked today. weird formatting issues
in the preview, the line breaks stopped registering near the end, a warning, just in case. and sometimes it’s italic! what the f**k!
ok, just for kicks, this is not quite what you want, but it’s
close, edit to taste.
draw a line, make it a movie, name it “line0”, that’s a zero.
put this in frame 1 of your main timeline:
for(i=1;i<10;i++){
duplicateMovieClip(“line0”,“line”+i,i);
}
xarray = [“23”,“42”,“463”,“46”,“296”,“100”,“350”,“235”,“191”,“432”];
yarray = [“188”,“275”,“23”,“56”,“63”,“225”,“89”,“46”,“235”,“45”];
function reset(targ){
with(targ){
_x = 600; // this is how wide the movie is
_y = Math.random()*250+25; // this is how tall the range is
eval(targ).speed = Math.random()15+15; // how fast
_width = 256(Math.random()+1); // how long
}
}
function move(targ){
if(done){return;}else{
with(targ){
if(_x < 0-_width){
reset(targ);
}else{
_x-=speed;
}
}
}}
function place(){
for(i=0;i<10;i++){
eval(“line”+i)._x = xarray*;
eval(“line”+i)._y = yarray*;
}
done=1;
}
whew!! almost done, this is hard work. ; )
select line0, move it so it’s all the way off the left of the stage, and put this in the actions:
onClipEvent(enterFrame){
_root.move(this);
}
triggering the place() function will make all the lines go to their corresponding values in the x and y arrays.
this is a good example of how arrays can be so handy!
good luck!