6 Replies Latest reply on Dec 7, 2011 9:02 PM by kglad

    How to perform "double click" event in ActionScript 2.0

    iawara

      Hi,

      i have a movieClip on which i have to perform a "double click" event so is there any Event or procedure to perform this event like we have "MouseEvent.DOUBLE_CLICK" in AS3.

      i have used the code

       

      dbc.onRelease = dbClick;

      function dbClick(){

          if(lastclick - (lastclick=getTimer()) + 500 > 0){

                 dbC.text = "double click"

          } else {

                             return;

          }

      }

       

      its working when i used this code on frame but this code is not working on external AS file. the error related to lastclick.

      is there any code like..  "instanceName.addEventListener('DoubleClick', functionName);" in AS2

       

      Looking for your help ..

       

      Thanks in advance