import flash.events.MouseEvent;  

btnClickDoubleClick.addEventListener(MouseEvent.CLICK, ClickDoubleClick);
var m_nDoubleClickSpeed:Number = 300;
var m_toMouse;

function ClickDoubleClick(e:MouseEvent) {
  if (m_toMouse != undefined) {
      clearTimeout(m_toMouse);
      HandleDoubleClick();
  } else {
      m_toMouse = setTimeout(HandleSingleClick, m_nDoubleClickSpeed);
  }
}

function HandleSingleClick() {
  trace("HandleSingleClick");
  m_toMouse = undefined;
}

function HandleDoubleClick() {
  trace("HandleDoubleClick");
  m_toMouse = undefined;
}