Say I have two buttons, green and red. How do I make it so that when the green button is clicked once, it stays red until it is clicked again? I want to make a button to mute and unmute music. I am using SoundChannel to play my music i.e.
public var intro:IntroSound = new IntroSound();
public var soundControl:SoundChannel = new SoundChannel();
soundControl = intro.play(0, 100);
Thanks.