# Problem with sound and buttons

**URL:** <https://forum.kirupa.com/t/problem-with-sound-and-buttons/161384>\
**Category:** flash\
**Created:** [September 3, 2005, 1:23pm UTC](https://forum.kirupa.com/t/problem-with-sound-and-buttons/161384 "2005-09-03T13:23:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolena1888](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@lolena1888](https://forum.kirupa.com/u/lolena1888)\
**Post date:** [September 3, 2005, 1:23pm UTC](https://forum.kirupa.com/t/problem-with-sound-and-buttons/161384/1 "2005-09-03T13:23:15Z")

</div>

I have 4 sound files on the level. All of them are labelled. And I have buttons on my navigation bar with transitions to that labels.

button 1:  
on(release){  
stop();  
stopallsounds();  
gotoandplay(“a”);  
}  
button 2:  
on(release){  
stop();  
stopallsounds();  
gotoandplay(“b”);  
}  
etc.

everything works great until I click the 4th(last button). If I click after that button 2 or 3, sound starts to play from the middle.

Can somebody help me?
