Comunidad de diseño web y desarrollo en internet online

doble click-----

Citar            
MensajeEscrito el 30 Jun 2006 04:10 am

Código :

a alguien se le ha ocurrido como hacer doble click????
d antemano graxias_____
:) ^^

Por pablop_

29 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 30 Jun 2006 04:44 am

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox
Citar            
MensajeEscrito el 01 Jul 2006 12:54 am
no sera muy largo.....
??????
tengo uno mas flexible.....

Código :

var _int:Number = 200;
var con:Number = 0;
bot.onPress = function() {
   if (con == 0) {
      con = getTimer();
   } else {
      con= 0;
      trace("doble click");
   }
};
bot.onEnterFrame = function() {
   if (con>0) {
      if ((getTimer()-con)>_int) {
         con= 0;
         trace("simple click");
      }
   }
};


donde dice siple click" y doble click".....solo se reemplaza por la accion a ejecutar.... ^^
y se controlan los milisegundos de intervalo tambien....
muxo mejor q el del tuto....y este te permite ejecutar acciones tambien con un click simple no?.. ^^

Por pablop_

29 de clabLevel



Genero:Masculino  

msie

 

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