Sound On/Off button

On my main timeline of my movie I load a sound swf with
loadmovie( “sound.swf”,99);

Then I have 2 buttons visible on/off

The OFF button has:
on (release) {
unloadMovieNum (99);
}

And the ON button has:
on (release) {
loadMovieNum (“sound.swf”, 99);
}

I want to change this to have just one button visible that
change appearence beetween Sound On/Sound off when clicked.

The thing is that I have the buttons in a transition MC.
So everytime the user change content (transition plays) flash
needs to remember which state the button had before the transition was played to appear again in the same state. How can I do this ?

Take a look at this thread, there’s a sample FLA posted that uses different frames. Maybe it will give you an idea. =)

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=14377&highlight=music+on+off+button