Double Click en AS2

[AS]
var double_click_wait = 300;
var lastClick = 0;
var mouseListener:Object = new Object();
mouseListener.onMouseUp = function() {
if ((getTimer()-previousClick) < double_click_wait) { trace("mouse double click "); previousClick = 0; } previousClick = getTimer(); }; Mouse.addListener(mouseListener); [/AS] Visto en brandejs

0 Comentarios
Comentarios