# AS2 CS4 - Multiple button clicks before action takes place

**URL:** https://forum.kirupa.com/t/as2-cs4-multiple-button-clicks-before-action-takes-place/327165
**Category:** flash
**Created:** [February 10, 2012, 8:28am UTC](https://forum.kirupa.com/t/as2-cs4-multiple-button-clicks-before-action-takes-place/327165 "2012-02-10T08:28:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BinaryBloke](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@BinaryBloke](https://forum.kirupa.com/u/BinaryBloke)
#### Post date: [February 10, 2012, 8:28am UTC](https://forum.kirupa.com/t/as2-cs4-multiple-button-clicks-before-action-takes-place/327165/1 "2012-02-10T08:28:05Z")

</div>

Hi. I am using cs4 and publishing using actionscript 2.

I have been searching around but cannot find a solution for this issue…

I have one button on the stage. As part of the actions for this button I want to count clicks, but there is more to it than that. There are actions based on the number of clicks a user makes. An example would be…

Click one - play a frame in a move clip

if there are no more clicks, reset the movie clip back to frame one

Two clicks in succession (with little pause). play a different frame in the move clip

if after double click there are no more clicks, reset the movie clip to frame one

Three clicks in succession (with little pause). play a different frame in the move clip

if after triple click there are no more clicks, reset the movie clip to frame one

Four clicks … and so on and so on

If anyone can upload an fla example of a button with these actions I would very much appreciate this.

Thanks
