# Timer

**URL:** https://forum.kirupa.com/t/timer/285021
**Category:** Uncategorized
**Created:** [March 26, 2009, 8:15am UTC](https://forum.kirupa.com/t/timer/285021 "2009-03-26T08:15:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tobycraftse](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@tobycraftse](https://forum.kirupa.com/u/tobycraftse)
#### Post date: [March 26, 2009, 8:15am UTC](https://forum.kirupa.com/t/timer/285021/1 "2009-03-26T08:15:16Z")

</div>

I have 3 flash button, and a touch screen LCD.

how can I detect if user has touch + hold the button for 5 seconds?

how to use timer + mouse down + mouse up for this?

1. mouse down
2. start timer (count 5 sec)
3. mouse up
4. user hold button for 5 sec detect

how to code this in actionscript?
