2 Replies Latest reply on Sep 7, 2006 1:06 PM by pinion247

    Button: On 1st Click do this, on 2nd Click do that, etc

    pinion247
      Hello all,

      I have a button, and I want to have certain actions attached to this button depending on how many times someone has clicked on it.

      Pseudo-code in my head would be something like this:

      if this is frame 1, then
      if button click is first click, play audio file #3
      if button click is second click, play audio file #2
      if button click is 3rd click, advance to next frame
      end if

      Is this possible in Flash using ActionScript? Am I thinking about this the correct way?

      Thanks in advance!