Posted in

Función de tamaño mc con aceleración

Cambiar de tamaño un movieclip usando una función que acelera y desacelera el cambio de tamaño. Esta versión incluye el posicionamiento.

tamany = function (este, fwidth, fheight, velocidad) {
 eval(este).onEnterFrame = function() {
 eval(este)._height = eval(este)._height+(fheight-eval(este)._height)/velocidad;
 eval(este)._width = eval(este)._width+(fwidth-eval(este)._width)/velocidad;
this._x = 475-(this._width/2);
 this._y = 325-(this._height/2);
 };
};

Deixa un comentari

L'adreça electrònica no es publicarà. Els camps necessaris estan marcats amb *


The reCAPTCHA verification period has expired. Please reload the page.