# How do I detect a 'timed' button release?

**URL:** <https://forum.kirupa.com/t/how-do-i-detect-a-timed-button-release/251949>\
**Category:** flash\
**Created:** [February 14, 2008, 9:17am UTC](https://forum.kirupa.com/t/how-do-i-detect-a-timed-button-release/251949 "2008-02-14T09:17:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheena](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sheena](https://forum.kirupa.com/u/sheena)\
**Post date:** [February 14, 2008, 9:17am UTC](https://forum.kirupa.com/t/how-do-i-detect-a-timed-button-release/251949/1 "2008-02-14T09:17:02Z")

</div>

Problem: I need the user to hold a button down for 3 seconds, if they let go before the 3 seconds is up an error message will appear.

Question: How do I go about detecting if the user has lifted off the button within the 3 seconds and trigger an error message?

Many thanks in advance.
