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
}
}