# AS2 Need help with timed button

**URL:** <https://forum.kirupa.com/t/as2-need-help-with-timed-button/636076>\
**Category:** flash\
**Created:** [February 23, 2017, 10:21pm UTC](https://forum.kirupa.com/t/as2-need-help-with-timed-button/636076 "2017-02-23T22:21:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marvin\_Conman](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Marvin\_Conman](https://forum.kirupa.com/u/Marvin_Conman)\
**Post date:** [February 23, 2017, 10:21pm UTC](https://forum.kirupa.com/t/as2-need-help-with-timed-button/636076/1 "2017-02-23T22:21:29Z")

</div>

Hello, I’m trying to make a flash game similar to “Dragon’s Lair” in which the animation flows until there’s a moment where you need to press a specified button in a short amount of time to progress, or it’s game over. I’m not very good with Flash programming (the only one I vaguely understand is AS2) so I’m turning for help to this forum.  
I mostly do everything on frames and how I imagine it at the moment is like in this video: [https://www.youtube.com/watch?v=i6em4GRiRY0](https://www.youtube.com/watch?v=i6em4GRiRY0)  
When the animation arrives at a certain frame, an element will flash and display which button to press (WASD, not by clicking) and if the button isn’t pressed within a second (+/-) it disappears and leads to a frame labeled “GameOver\_#”, but if it’s pressed it leads to frame labeled “Continue\_#”, and so on until it reaches “Ending”. Basically a reflex game.  
The problem is I don’t know how to make a button like that, so could anyone please help?
