# Sound on / off

**URL:** https://forum.kirupa.com/t/sound-on-off/172731
**Category:** flash
**Created:** [December 17, 2005, 5:57am UTC](https://forum.kirupa.com/t/sound-on-off/172731 "2005-12-17T05:57:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rafimmedia](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@rafimmedia](https://forum.kirupa.com/u/rafimmedia)
#### Post date: [December 17, 2005, 5:57am UTC](https://forum.kirupa.com/t/sound-on-off/172731/1 "2005-12-17T05:57:39Z")

</div>

Hi to all,

i made a one intro animation,the animation cotains music , i placed in a MC,  
when the user run the intro the sound is play. when he press the stop btn  
it sohld be stop same method for play. i used this code

on release () /// for stop button///  
{  
stop all sounds()  
}

on release () /// for play button///  
{  
playallsounds()  
}

stop button work fine but play?
