PDA

View Full Version : Mute button


Fergy
04-06-2003, 03:45 PM
I need a button that will mute a sound file. The sound will need to be playing all the time, so when I click the button a second time, you will hear the sound at a different point in the wav file.
I currently have it set up so that it will "stopallSounds", but when the button is clicked to resume the sound, it just starts the wav file again from the start.
Any help would be appreciated.

Billy T
04-06-2003, 10:21 PM
you need to make a sound object, attach or load your sound into that sound object and then set the volume of that sound object to 0

mySound=new Sound();
mySound.attachSound("sound1");
mySound.start();
mySound.setVolume(0);

remember to search

cheers