Timer

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?