Ver Mensaje Individual
  #6 (permalink)  
Antiguo 19/11/2005, 10:11
Avatar de jerkan
jerkan
 
Fecha de Ingreso: septiembre-2005
Mensajes: 1.607
Antigüedad: 18 años, 7 meses
Puntos: 19
He estado investigando y, tal y como pensé, la respuesta es afirmativa.

Para no sobrecargar la aplicación (CPU), habría que incluir la siguiente línea:

Código:
btn.onRelease = function() {
clip.onEnterframe = function() {
this._x += (400-this._x)/4;

// condición de parada
if( (400 - this._x) < 1 ) delete this.onEnterFrame;
};
};