Sound toggle using stopAllSounds();

I have created a game where all the main actionscript takes place in one frame.

For extra functionality I was going to add a button to toggle on/off sounds, after searching this forums and others Im left confused how to implement this.

If i choose to use stopAllSounds() Im aware it only stops the current sounds and will not interfere with sounds about to occur.

Collision detection and random sounds occur within my game on an interval, is there a simple way to turn off all sounds permenantly?

The only other id would be a button with a toggle and use multiple IF statements to check status of sound on/off.

Thanks
Rob