Comunidad de diseño web y desarrollo en internet online

retardo entre animaciones

Citar            
MensajeEscrito el 09 Oct 2008 07:50 am
Hola,

Estoy intentando poner un retardo entre mis animaciones hechas con tween, pero no soy capaz.
Esto es lo que pongo:

Código :

var retardo:Number= 0.2;
var transicion1:Tween = new Tween (img1, "_x", mx.transitions.easing.Regular.easeOut, 800, 0, 4, true);
transicion1.onMotionFinished = function() {
var transicion2:Tween = new Tween (img1, "_x", mx.transitions.easing.Regular.easeIn, 0, -1000, 4, retardo);
retardo= retardo + 0.2;
}

¿Qué estoy haciendo mal?

Por Onexete

76 de clabLevel



Genero:Masculino  

msie7
Citar            
MensajeEscrito el 09 Oct 2008 10:31 am
Usa un retardo grande y notorio a ver si funciona, incluso ponlo hardcoded antes de meterte a usar la variable, que por cierto se ejecuta una sola vez, con lo cual el incremente del retardo se pierde

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.