How to make a button for sound on /off?

How do I make a button for sound on/off? (I’m a beginner,so please take it easy!..)
Thanks all!
[email protected]

You need to insert a movie clip & then draw your on/off button inside of it. Once draw press insert, then convert to symbol & choose button. Add this script to the button:

on (press) {
if (_root.condition == true) {
stopAllSounds ();
_root.condition = false
}else{
gotoAndPlay or loadMovieNum //location where your sound is
_root.condition = true
}
}

That should it it for you. O 1 other thing please initialize the variable by adding this action:
_root.condition = true
to frame 1