# Sound On/Off button

**URL:** <https://forum.kirupa.com/t/sound-on-off-button/15656>\
**Category:** flash\
**Created:** [March 16, 2003, 9:09pm UTC](https://forum.kirupa.com/t/sound-on-off-button/15656 "2003-03-16T21:09:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lord\_ERK](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@Lord\_ERK](https://forum.kirupa.com/u/Lord_ERK)\
**Post date:** [March 16, 2003, 9:09pm UTC](https://forum.kirupa.com/t/sound-on-off-button/15656/1 "2003-03-16T21:09:16Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 16, 2003, 9:30pm UTC](https://forum.kirupa.com/t/sound-on-off-button/15656/2 "2003-03-16T21:30:28Z")

</div>

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](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=14377&highlight=music+on+off+button)
