Skip to main content
February 7, 2013
Answered

Actionscript 2 and 3 - multiple clicks on a single button

  • February 7, 2013
  • 1 reply
  • 952 views

I am trying to create a single button that can take a single, double and triple mouse click.

For example. I click the button once, and it goes to a scene. Another time, I click the same button twice (like a double click) and it goes to another scene. Finally, I click that button 3 times (click, click, click) and it goes to another scene.

Any help would be welcomed.

This topic has been closed for replies.
Correct answer kglad

you'll need to use a timer for the triple tick in both as2 and as3 and you'll need to use a timer for a double click, too for as2.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
February 7, 2013

you'll need to use a timer for the triple tick in both as2 and as3 and you'll need to use a timer for a double click, too for as2.

February 11, 2013

Thank you!

kglad
Community Expert
Community Expert
February 11, 2013

you're welcome.