# How do I check if button pressed?

**URL:** <https://forum.kirupa.com/t/how-do-i-check-if-button-pressed/211507>\
**Category:** flash\
**Created:** [January 2, 2007, 2:23pm UTC](https://forum.kirupa.com/t/how-do-i-check-if-button-pressed/211507 "2007-01-02T14:23:06Z")\
**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:** [January 2, 2007, 2:23pm UTC](https://forum.kirupa.com/t/how-do-i-check-if-button-pressed/211507/1 "2007-01-02T14:23:06Z")

</div>

Hello, happy 2007.

I have five buttons, only one of these will allow the user to start a demo.

I need to let the user know when they have pressed the wrong button and indicate that with an alert message…if they make another error I need to show a different alert message.

How do I let the ‘wrong’ buttons know that one of them has been pressed incorrectly therefore if pressed again will show the second alert message?

Many thanks
