ich lass es mal mitschneien

ActionScript:
function Snow (targetMc, size, speed, count, width, height)
{
this.targetMc = targetMc;
this.size = size;
this.speed = speed;
this.count = count;
this.width = width;
this.height = height;
this.flakes = [];
this.makeFlakes ();
}
Snow.prototype.makeFlakes = function ()
{
for (var i = 0; i < this.count; i++)
{
var flake = this.targetMc.createEmptyMovieClip ("f" + i, i + 1);
this.flakes.push ({mc:flake, dist:5 + Math.random () * 5});
with (flake)
{
_y = Math.random () * this.height;
_x = Math.random () * this.width;
lineStyle (4, 0xEEEEEE);
lineTo (1, 1);
}
}
this.snowID = setInterval (this, "render", this.speed);
};
Snow.prototype.render = function ()
{
this.xpos++;
for (var i = 0; i < this.count; i++)
{
this.flakes[i].mc._y += this.flakes[i].dist;
this.flakes[i].mc._x += Math.sin (i + this.xpos / 5) * 5;
if (this.flakes[i].mc._y > this.height)
{
this.flakes[i].mc._y = this.size * -1;
this.flakes[i].mc._x = Math.random () * this.width;
}
}
};
this.createEmptyMovieClip ("snow_mc", 1);
test = new Snow (snow_mc, 4, 20, 100, 550, 400);
_quality = "LOW";