Stop all sounds but one

Posted by Fahim Akhter on Stack Overflow See other posts from Stack Overflow or by Fahim Akhter
Published on 2010-03-31T07:40:31Z Indexed on 2010/03/31 7:43 UTC
Read the original article Hit count: 330

Filed under:

Hi,

I posted a question earlier about stopping all sounds in a swf. Now, to do that I'm using the following code.

var transform1:SoundTransform=new SoundTransform();
transform1.volume=0;
flash.media.SoundMixer.soundTransform=transform1;

Which solves the problem (mutes all sounds) but now there is an issue, I want to stop all sounds but one. Any Ideas?

© Stack Overflow or respective owner

Related posts about actionscript-3