# Button with Sound and Actionscript problem after hit loads next scene

**URL:** <https://forum.kirupa.com/t/button-with-sound-and-actionscript-problem-after-hit-loads-next-scene/174480>\
**Category:** flash\
**Created:** [January 6, 2006, 2:19am UTC](https://forum.kirupa.com/t/button-with-sound-and-actionscript-problem-after-hit-loads-next-scene/174480 "2006-01-06T02:19:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deb](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@Deb](https://forum.kirupa.com/u/Deb)\
**Post date:** [January 6, 2006, 2:19am UTC](https://forum.kirupa.com/t/button-with-sound-and-actionscript-problem-after-hit-loads-next-scene/174480/1 "2006-01-06T02:19:43Z")

</div>

I have a button with music that plays on hit and an action script. Everytime it plays the music works fine but it immediately goes to the next scene.

button ActionScript

on (press) {  
stopAllSounds();  
}  
on (release) {  
play();  
}

I don’t want the next scene to launch while the music is playing. I am loading up 11 tracks and I want people to be able to pick a track to listen and then if choose another.

For the life of me I can’t seem to figure out what I am missing.

Thanks in advance for your help.

Deb
