7 Replies Latest reply on May 26, 2012 4:08 PM by Electroclash

    Timing how long a button is pressed down for

      Hello all. I was wondering if I could get some help on this topic. I am trying to figure out a way to have a button jump to a certain frame if pressed but then also jump to a different frame if the button is held down for a certain time period, lets say 2 seconds. I am assuming I would have to use the Timer() function. My logic is as follows;
      start timer()
      If timer() == 2 secs
      gotoAndStop(frame 37);

      any suggestions??