Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/11/2008, 04:55
elysium
 
Fecha de Ingreso: julio-2006
Mensajes: 29
Antigüedad: 17 años, 8 meses
Puntos: 0
Exclamación Ayuda efecto empezar a nevar

Saludos a todos!!

Tengo un fla con un efecto de nieve, pero me gustaría hacer que empiece a nevar gradualmente, y no que esté nevando desde el principio. A ver si alguien que sepa de actionscript me puede ayudar. Os explico lo que tengo hasta ahora:

En el primer frame tengo el siguiente código:

this.onEnterFrame = function () {
mc_animacion._rotation -= 50;
porcentaje = Math.round ((_root.getBytesLoaded () / _root.getBytesTotal ()) * 100);
porcen = porcentaje + " %";
if (porcentaje == 100) {
delete this.onEnterFrame;
gotoAndPlay(nextFrame);
}
};


En el segundo frame tengo este codigo:

var cantidad = 800;
var max = 50;
var min = 1;
var ancho = Stage.width;
var altura = Stage.height;
for (var i = 0; i < cantidad; i++) {
copo_mc = this.attachMovie("copo_mc", "copo_mc" + i, i);
with (copo_mc) {
_x = Math.floor(Math.random() * ancho);
_y = Math.floor(Math.random() * altura);
_xscale = _yscale = _alpha = Math.floor(Math.random() * (max - min + 1)) + min;
}
copo_mc._ypos = Math.floor(Math.random() * 2 + .5);
copo_mc.incremento = -0.025 + Math.random() * 0.05;
copo_mc.onEnterFrame = function() {
this.radianes += this.incremento;
this._x += Math.sin(this.radianes);
this._y += this._ypos;
if (this._y >= altura || this._x >= ancho || this._x <= 0) {
this._y = -10;
this._x = -10 + Math.floor(Math.random() * ancho + 10);
}
};
}


Y tengo tambien el mc llamado copo (con su vinculación)

A partir de esto, como puedo hacerlo? No tengo mucha idea de as...

Muchíiiiisimas gracias a todos :)