PDA

View Full Version : stopping sound


drspanklebum
05-02-2005, 09:53 PM
I have two sound tracks running at the same time, and I want a button for each of them to stop the sound. If I use stopAllSounds then all sounds stop, but I dont want that. I just want one sound to stop while the other keeps playing. Is there a way to do this?

pcarini
05-03-2005, 10:36 PM
Try mySound.stop();

var sound1:Sound = new Sound();
var sound2:Sound = new Sound();
sound1.loadSound('./someurl/somesound.mp3', false);
sound2.loadSound('./someurl/someothersound.mp3', false);

sound1.start();
sound2.start();
sound2.stop();