MovieClip.prototype.alfa = function(alfa, vel) {
if (arguments.length<2) {
trace(“número de parámetros erróneo”);
return;
}
this.vel = vel;
this.alfa = alfa;
this.onEnterFrame = function() {
trace(this._alpha);
this._alpha = (this.alfa+this.vel*this._alpha)/(this.vel+1);
if (Math.abs(Math.round(this._alpha)-this.alfa) == this.vel) {
this._alpha = this.alfa;
delete this.onEnterFrame;
}
};
};
mc_miclip.alfa(80, 2);
This entry was posted
on Sabado, Mayo 8th, 2004 at 2:24 pm and is filed under Enlaces recomendados, mis protos.
You can follow any responses to this entry through the RSS 2.0
feed.
Both comments and pings are currently closed.
Septiembre 16th, 2004 at 4:18 pm
Hola Tony, esta muy bueno esto, existe la posibilidad de controlarlo con un botón?
Muchas Gracias.