All pastes #249990 Raw Edit

Someone

public text v1 · immutable
#249990 ·published 2006-11-16 14:22 UTC
rendered paste body
_global.originallySoundOn = false;
soundOff = function ()
{
	trace("-------------");
	trace("is the sound on or off?");
	trace(soundEffects)
	if (soundEffects == true) {
		trace("sound is on");
		originallySoundOn = true;
		_root.buttonSound.onRelease();
	} else {
		trace("sound is off");
		originallySoundOn = false;
	}
	buttonSound.enabled = false;
};
soundOn = function ()
{
	trace("-------------");
	trace("was the sound on or off?");
	if (originallySoundOn == true) {
		trace("sound was on");
		_root.buttonSound.onRelease();
		_root.buttonSound.enabled = true;
	} else {
		trace("sound was off");
		_root.buttonSound.enabled = true;
	}
};