PDA

View Full Version : ALL sounds toggle?


Pyroclasm
04-03-2002, 05:07 PM
Lets say I my interface is done. All buttons have sounds, the main movie has a looping sound in the background. Now I want to have a button on the bottom right. The button has text on it "sounds ON." If I was to click it, it would stop ALL sounds in the movie, and the text on the button would change to "sound Off."
If I click the toggle once, it stops all sounds and music, if click again, all music is back on and playing, if click again stop all sounds,....and so on.
I want a true toggle, not 2 buttons(one for play the other to stop). Can someone show me how to do this?

Billy T
04-03-2002, 11:14 PM
this has been covered many times...

make an mc with 2 frames and a stop action in each frame

put 1 button in one frame and the other button in the other frame (or just use the 1 button and change the text on top for the 2 frames)

give them actions such as

on(release){
stop the sounds;
gotoAndStop(2);
}

and

on(release){
play the sounds;
gotoAndStop(1);
}

cheers

Pyroclasm
04-04-2002, 07:32 PM
if this has been covered many times, then shouldn't they make a tutorial on it?

Billy T
04-04-2002, 11:18 PM
good idea - go ahead and make one!