# One button for two events?

**URL:** https://forum.kirupa.com/t/one-button-for-two-events/77460
**Category:** Uncategorized
**Created:** [January 27, 2005, 12:07pm UTC](https://forum.kirupa.com/t/one-button-for-two-events/77460 "2005-01-27T12:07:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rock](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@rock](https://forum.kirupa.com/u/rock)
#### Post date: [January 27, 2005, 12:07pm UTC](https://forum.kirupa.com/t/one-button-for-two-events/77460/1 "2005-01-27T12:07:49Z")

</div>

Hi guys

hope u r all doing fine

here is my question

i know that if i want to do off on sound button in flash i can make 2 buttons then use a behaviour for each of them

ok , what if i want only one button that when clicked will stop sound playing , and when clicked again plays the sound , that is one button for the two events

another thing is what about if i want to make three buttons , and each when clicked plays a music

thnx
