Combined Code
// unknown tag 88 length 81
movieClip 4 drop {
}
frame 1 {
var rain_speed = 3;
var rain_direction = 0.75;
var rain_density = 20;
_root.createEmptyMovieClip('rain_mc', 1);
i = 0;
while (i <= rain_density) {
_root.rain_mc.attachMovie('drop', 'drop' + i, _root.rain_mc.getNextHighestDepth(), {'_x': Math.random() * Stage.width, '_y': Math.random() * Stage.height, '_rotation': 0});
++i;
}
var inter = setInterval(function () {
i = 0;
while (i <= rain_density) {
_root.rain_mc['drop' + i]._y += rain_speed * Math.sin(rain_direction);
_root.rain_mc['drop' + i]._x += rain_speed * Math.cos(rain_direction);
if (_root.rain_mc['drop' + i]._y > Stage.height + 25) {
_root.rain_mc['drop' + i]._y = Math.random() * 0 + -25;
} else {
if (_root.rain_mc['drop' + i]._x > Stage.width + 25) {
_root.rain_mc['drop' + i]._x = Math.random() * 0 + -25;
} else {
if (_root.rain_mc['drop' + i]._x < -25) {
_root.rain_mc['drop' + i]._x = Stage.width;
}
}
}
++i;
}
}, 20);
}
movieClip 6 {
}
instance of movieClip 6 {
onClipEvent (enterFrame) {
this.swapDepths(2);
}
}