Hi. I'm trying to find out how to stop a sound without changing the code I already have.
This is the AS3 I currently have right now:
//tell the animation to stop
var titleBGM:Sound = new titleTheme();
var swordSFX:Sound = new swordHit();
What this script is saying:
1) When the title screen loads - Play Title Screen
2) When user clicks NEWGAME - goes to frame 81, and plays the select soundEffect. (the one labeled 'swordSFX')
Here's what it doesn't do:
When the player clicks the new game button, I want it to go to frame 81, but first, I want it to stop the title screen theme and play the swordSFX variable, which it doesn't do. I tried to stop the title theme with SoundMixer.stopAll(); function. It stops the title screen, but it also prevents the SwordSFX var from doing it's thing. I tried SoundChannel, and that didn't work either.
What do I need to add to the script to get it to stop the title screen theme WITHOUT preventing the swordSFX sound from playing? Thanks.