Hi,
Im using the fallowing code for a smooth movement for objects, the thing I want is I also want it to be like elastic.
MovieClip.prototype.closefolder = function(newidth, newheight, speed, loader) {
this.onEnterFrame = function() {
current_w = this._width;
current_h = this._height;
this._width -= (current_w-newidth )/speed;
this._height -= (current_h-newheight)/speed;
};
How to do that ?
thanks