Comunidad de diseño web y desarrollo en internet online

Que esta mal en este codigo?

Citar            
MensajeEscrito el 19 Jun 2008 11:53 am
Hola mas una vez estoy aqui para sacar unas dudas.. no se porque quando el mouse se va muy rapido no funciona el rollout para el texto, para la animacion sim, alguna sugestion? se quiren ver en funcinamiento esta en www.alexdelrei.com en fase de test...

muchas gracias desde luego

Alex

Código :

#include "lmc_tween.as"
import mx.transitions.Tween;
// -----------------------

var abrir = mx.transitions.easing.Elastic.easeOut;
var fechar = mx.transitions.easing.Elastic.easeOut;


mcHome.onRollOver = function() {

   new Tween(mcHome, "_xScale", abrir, 40, 70, 2);
   new Tween(mcHome, "_yScale", abrir, 40, 70, 2);
   mcHomeT.slideTo(mcHome._x,mcHome._y+50,1,easeInOut,.3);
   mcHomeT.alphaTo(100,1,easeInOut,.3);
};

mcHome.onRollOut = function() {

   new Tween(mcHome, "_xScale", fechar, 70, 40, .5, true);
   new Tween(mcHome, "_yScale", fechar, 70, 40, .5, true);
   mcHomeT.slideTo(mcHome._x,mcHome._y+100,1,_root.easeInOut,.1);
   mcHomeT.alphaTo(0,1,_root.easeInOut,.1);
};

Por play_br

3 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 19 Jun 2008 04:06 pm
El código se ejecuta en cada frame, es decir a la velocidad FPS que tengas. Si lo haces lo suficientemente rápido, ningún rollOver ni rollOut se ejecuta. Puedes forzar un chequeo con un setInterval, o si pasa N tiempo y no tedetctas un hitTest con el mouse, lanzas el rollOut

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.