My problem is having several buttons in flash that play sounds when clicked, and I want only one button/sound to be active at a time. Problem is that if the mouse button is released outside of the flash window the last button's sound keeps sounding til the end, and if another button is pressed in the meantime it too starts sounding simultaneously, and so on.
So I thought of checking if the SoundChannel assigned to any other button than the currently pressed one is playing, and if so, stop that SoundChannel to only let the current button's SoundChannel play.
But if this Actionscript SoundChannel is a single object for all the buttons, this won't work, and then I don't see a solution to preventing multiple sounds sounding simultaneously other than adding a 'warning' box, which seems redundant and ineffective. So can you have a separate SoundChannel for each button or object in a flash movie, otherwise how can I bulletproof this so that only one button sound can sound at once no matter where the mouse is released, inside as or outside of the flash window?