Stop all sounds except

Is there a way to use the stopallsounds command with an exception? I want to stop all narrations (in a presentation) when a button is clicked but keep the background music going. So i want to stopallsounds except the background sound. any ideas?

you could find the exceptions postion in milliseconds

pauseAmount=s.position;

// s being the sound;

then stop the sounds

then start playing the exception

s.start(pauseAmount/1000,0);

the only thind to remember is that position is in milliseconds

and the offset to start is seconds

so divide pauseAmount/1000

you should hear no stop in sound

thanks, but i’m not entirely sure what you mean. Here’s my code for the button:

on (release) {
stopAllSounds();
_root.mc_btn1.gotoAndStop(1);
_root.mc_btn2.gotoAndStop(1);
_root.mc_btn3.gotoAndStop(1);
_root.mc_btn4.gotoAndStop(1);
_root.mc_btn5.gotoAndStop(1);
_root.mc_btn6.gotoAndStop(1);
_root.mc_btn7.gotoAndStop(1);
_root.mc_btn8.gotoAndStop(1);
_root.mc_btn9.gotoAndStop(1);
_root.mc_btn10.gotoAndStop(1);
gotoAndStop(2);
_root.gotoAndStop(2);
}

can you clarify?

is your sound dynamic or is it embedded in the timeline?

embedded in the timeline. i select a blank layer and add the sound from the properties panel.

i am sorry magicmule

but the code i gave you was for code for sound added by actionscript

i suggest you google kenny bellows sound flash

for some sound tut