Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/11/2004, 10:34
Avatar de TMeister
TMeister
Crazy Coder
 
Fecha de Ingreso: enero-2002
Ubicación: En la Oficina
Mensajes: 2.880
Antigüedad: 22 años, 3 meses
Puntos: 193
algo asi:

Código:
MovieClip.prototype.mover = function(x, y, vel) {
	this.onEnterFrame = function() {
		if (Math.round(this._x) != x || Math.round(this._y) != y) {
			this._x += (x-this._x)/vel;
			this._y += (y-this._y)/vel;
		} else {
			delete this.onEnterFrame;
		}
	};
};
esto se usa asi

Código:
myClip.mover(xFinal, yFinal, friccion);
esto como vez es para mover el Clip en sus ejes X y Y pero puedes aplicarlo a cualquir propiedad _alpha _width, _height, etc etc