Admin
 
 
Logo DIPLOX
Simular doble click en flash
Volver Por face
  
Miercoles, 23/09/2009
Pequeño script para, sobre un objeto, simular el comportamiento del doble click de ratón:

on (press) {
ClickAnterior = ClickTiempo;
ClickTiempo = getTimer ();
ClickVelocidad = 500;
if (ClickTiempo <= (ClickAnterior + ClickVelocidad) && ClickAnterior<>undefined) {
trace (ClickTiempo)
trace (¨Has hecho doble click¨);
// Instrucciones a hacer con doble click
} else {
trace (¨Has hecho un click simple¨);
// Instrucciones a hacer con click simple
}
}


Volver Por face