# Sound Controller Problems (flash8)

**URL:** https://forum.kirupa.com/t/sound-controller-problems-flash8/211939
**Category:** flash
**Created:** [January 6, 2007, 6:36pm UTC](https://forum.kirupa.com/t/sound-controller-problems-flash8/211939 "2007-01-06T18:36:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Iron\_Bridge](https://avatars.discourse-cdn.com/v4/letter/i/6a8cbe/32.png) [@Iron\_Bridge](https://forum.kirupa.com/u/Iron_Bridge)
#### Post date: [January 6, 2007, 6:36pm UTC](https://forum.kirupa.com/t/sound-controller-problems-flash8/211939/1 "2007-01-06T18:36:52Z")

</div>

I have designed a sound controller and am having a problem with one aspect of it. The way it is designed there is a horizontal scroll bar and and button (mute\_mc) which either starts or stops the audio content (allsound). I would like to get that button to change from a pause symbol to a play symbol each time it is clicked so I added a two frame movie with stop frames in mute\_mc to have it change from pause to play symbols. The only problem is that I cannot get both functions (stopping the sound and switching the symbol) to work on mute\_mc. The AS on mute\_mc is:

var allsound:Sound = new Sound(this);  
mute\_mc.onRelease = function() {  
if (\_root.allsound.getVolume() == 100) {  
\_root.allsound.setVolume(0);  
} else {  
\_root.allsound.setVolume(100);  
}  
};

and the AS on mute\_mc.pause\_mc and mute\_mc.play\_mc are

stop ();

pause\_mc.onRelease = function() {  
gotoAndStop(2);  
}

and

stop ();

play\_mc.onRelease = function() {  
gotoAndStop(1);  
}

Obviously there are two mcs in mute\_mc (pause\_mc and play\_mc). I want to have the release of mute\_mc stop all of the sound (allsound an event of vegas\_mc) and then go to the next frame in mute\_mc (which would either play pause\_mc or play\_mc.

I have tried everything I can think of and have looked around a lot. I am a newbie and have fairly limited AS abilites.

I am assuming this is really easy to fix and I would really appreciate the help. I am trying to make a really nice wedding site for my fiance and I. In case there is somebody out there willing to take a closer look I have attached the fla without the mp3. In the fla the vegas\_mc contains the mp3 . Wow, this is a mouthful but I would really really appreciate the help.
