I want to make a raining effect in flash 8. I found a flash 5 file from internet. but it does not work in flash 8.
The code is
_root
[COLOR=SeaGreen]Frame 1 Code:[/COLOR]
dropcnt = 1;
[COLOR=SeaGreen]Frame 2 Code:[/COLOR]
dropbreed = int(random(2));
if (Number(dropbreed) == 1) {
dropcnt = Number(dropcnt)+1;
duplicateMovieClip("/all", "all" add dropcnt, dropcnt);
setProperty("/all" add dropcnt, _x, random(400));
setProperty("/all" add dropcnt, _y, Number((random(50)))+150);
}
if (Number(dropcnt)>500) {
dropcnt = 1;
}
[COLOR=SeaGreen]Frame 3 code:[/COLOR]
gotoAndPlay(2);
movie clip named "all"
[COLOR=SeaGreen]frame 1 Code:[/COLOR]
delay = 1;
[COLOR=SeaGreen]Frame 15 code:[/COLOR]
riplcnt = 1;
ripltime = 1;
[COLOR=SeaGreen]Frame 16 Code:[/COLOR]
ripltime = Number(ripltime)+1;
breed = int(random(10));
if (Number(breed) == 1) {
riplcnt = Number(riplcnt)+1;
duplicateMovieClip("ripple", "ripple" add riplcnt, Number(riplcnt)+Number(/:dropcnt));
}
if (Number(ripltime)>=10) {
gotoAndStop(18);
}
[COLOR=SeaGreen]
Frame 17 Code:[/COLOR]
gotoAndPlay(16);
[COLOR=SeaGreen]Frame 18 Code:[/COLOR]
delay = Number(delay)+1;
[COLOR=SeaGreen]Frame 19 Code:[/COLOR]
if (Number(delay)<30) {
gotoAndPlay(18);
} else {
gotoAndStop(20);
}
[COLOR=SeaGreen]Frame 20 Code:[/COLOR]
removeMovieClip("");
stop();
[SIZE=4][COLOR=Red]
[/COLOR][/SIZE][SIZE=4][COLOR=Red]if can please help me… to make a raining effect.C:-)[/COLOR][/SIZE]