Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/10/2009, 05:45
Tes
 
Fecha de Ingreso: noviembre-2007
Mensajes: 31
Antigüedad: 16 años, 6 meses
Puntos: 0
Problema botón con tween (si paso el ratón rápido)

Tengo un problema cuando paso demasiado rápido el ratón sobre el botón, tengo 2 tweens, uno para el onRollOver y otro para el onRollOut. Querría que la animación del onRollOut empezara si y solo si, el onRollOver está finalizado porque sino se me acoplan.

Código:
onRollOver = function(){
	fondo.tween("_y", -5, 0.4, "easeOutBounce");
	textoA.tween("_x", _width, 0.4, "easeInBack");
	textoB.tween("_x", 0, 0.6, "easeOutBack", 0.4);
}
onRollOut = function(){	
	fondo.tween("_y", 25 , 0.4, "easeOutBounce", 0.4);	
	textoA.tween("_x", 0, 0.6, "easeOutBack", 0.4);
	textoB.tween("_x", -_width, 0.4, "easeInBack");
}
Les adjunto el archivo en flash CS3 por si quieren echarle un vistazo, pasen el ratón rápido sobre el botón. Gracias

3w.zshare.net/download/66449706a92d1490/