Comunidad de diseño web y desarrollo en internet online

como definir un evento???

Citar            
MensajeEscrito el 24 Nov 2006 06:07 pm
señores, yo se que esto para muchos debe ser sencillo y hasta ridiculo pero algo me podria decir como hacer que en el siguiente codigo pueda ejecutar la animacion al cargar la pelicula y no cuando pase el mouse sobre el cuadro???

de antemano gracias.

Código :

import mx.transitions.Tween; 
import mx.transitions.easing.*;
_root.cuadro.onRollOver = function() {
miXTween = new mx.transitions.Tween(cuadro, "_xscale", Strong.easeOut, 100, 200, 2, true); 
miYTween = new mx.transitions.Tween(cuadro, "_yscale", Strong.easeOut, 100, 200, 2, true); 
}; 
_root.cuadro.onRollOut = function() { 
miXTween.yoyo(); 
miYTween.yoyo(); 
};


http://img129.imageshack.us/my.php?image=01cq0.swf

Por aprendiz_82

66 de clabLevel



Genero:Masculino  

El Salvador

msie
Citar            
MensajeEscrito el 24 Nov 2006 10:16 pm
Así ;)

Código :

import mx.transitions.Tween;
import mx.transitions.easing.*;
var miXTween:Tween = new mx.transitions.Tween(cuadro, "_xscale", Strong.easeOut, 100, 200, 2, true);
var miYTween:Tween = new mx.transitions.Tween(cuadro, "_yscale", Strong.easeOut, 100, 200, 2, true);
miXTween.onMotionFinished = function() {
   miXTween.yoyo();
   miYTween.yoyo();
   miXTween.onMotionFinished=null;
};

Por Zah

BOFH

4290 de clabLevel

27 tutoriales
5 articulos

  Bastard Operators From Hell Editores

Zaragoza, España

firefox
Citar            
MensajeEscrito el 25 Nov 2006 07:15 pm
muchas gracias....

Por aprendiz_82

66 de clabLevel



Genero:Masculino  

El Salvador

firefox

 

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