views:

27

answers:

1

I am using the following code, in the last line when I play the sound I can still hear it even when I have transformed it to 0.

var tempTransform:SoundTransform = new SoundTransform(0,0.5);
clickSoundChannel = clickSound.play();
clickSoundChannel.soundTransform = tempTransform;
clickSound.play();
+1  A: 

You're calling clickSound.play() twice, and you're only muting the first one.

Chris Burt-Brown