es el primer umm.. tema que escribo, espero que este bien donde lo puse, la verdad necesito saber como parar la nieve puse un frame y le puse las acciones para que callera nieve, pero duratne toda la presentacion sigue la nieve callendo!!
mi accion script es este:
Código :
amount = 300;
mWidth = Stage.width;
mHeight = Stage.height;
for (var i = 0; i<amount; i++) {
thisnieve = this.attachMovie("flake", "flake"+i, i);
with (thisnieve) {
_x = Math.random()*mWidth;
_y = Math.random()*mHeight;
_xscale = _yscale=_alpha=50+Math.random()*50;
}
thisnieve.yspeed = Math.random()*2.5+1;
thisnieve.onEnterFrame = function() {
this._y += this.yspeed;
if (this._y>=mHeight) {
this._y = -10;
this._x = -10+Math.random()*mWidth;
}
if (this._x>=mWidth || this._x<=0) {
this._y = -10;
this._x = -10+Math.random()*mWidth;
}
};
}espero sepan como hacer que pare
