Código :
function redimensionar(x,y,ancho,alto, aceleracion) {
Clip.onEnterFrame = function() {
this._x += (x-this._x)/aceleracion;
this._y += (y-this._y)/aceleracion;
this._width += (ancho-this._width)/aceleracion;
this._height+= (alto-this._height)/aceleracion;
if (Math.abs(x-this._x)<0.5 && Math.abs(y-this._y)<0.5 && Math.abs(ancho-this._width)<0.5 && Math.abs(alto-this._height)<0.5) {
this._x = x;
this._y = y;
this._width = ancho;
this._height = alto;
delete this.onEnterFrame;
}
};
}
al MC que quiero cambiar de dimensiones lo llamo redimensionar , y llamo a esta función desde un btoton con este Código
Código :
boton_btn.onRelease = function (){
redimensionar(100,100,10,10,3);
}
la verdad no sé , en qué ando mal, por que no llega a funcionar, si alguièn me podria hechar un cable la verdad le estaría muy agradecido y un saludo a todos.
