Wait… now there’s another problem. When the function is called multiple times, evrytime it is called, it just replaces the water drops with new ones. Here is the code: [AS]xoffset = 150;
yoffset = 200;
function generateWater(amount) {
for (i=0; i<amount; i++) {
id = _root.createEmptyMovieClip(“water”+i, i);
id.yspeed = random(20)+20;
id.xspeed = random(10)-5;
id.lineStyle(10, 0x0000FF, random(75)+25);
id.moveTo(xoffset, yoffset);
id.lineTo(xoffset, yoffset+1);
id.onEnterFrame = moveWater;
}
}
function moveWater() {
this._y -= this.yspeed;
this._x += this.xspeed;
this.yspeed -= 3;
}
onEnterFrame = function () {
generateWater(1);
};
[/AS]