[FONT=Comic Sans MS][COLOR=navy]Dear All,[/COLOR][/FONT]
[FONT=Comic Sans MS][COLOR=navy]Thanks for this great forums and your great topics. I have a question, can u please help me getting the script that stops all running sounds in the flash movie?[/COLOR][/FONT]
[FONT=Comic Sans MS][COLOR=navy]I want to make a button that when pressed all sounds will stop, and when pressed again all sounds play again.[/COLOR][/FONT]
[FONT=Comic Sans MS][COLOR=navy]Also, I need to know how to make a volume bar to increase or decrease the sound volume. Can any one give me a simple way to do these 2 things?[/COLOR][/FONT]
[FONT=Comic Sans MS][COLOR=navy]Thank you and waiting your significant replies![/COLOR][/FONT]
[FONT=Comic Sans MS][COLOR=darkorange]Mohammed[/COLOR][/FONT]
Are you using sounds on the timeline or a Sound object?
_root.globalSound = new Sound();
place on frame one of the _root timeline, anything you do to that sound object will happen to all others, regardless of how they are defined, where they are defined or to which movie clip they are associated.
posted too quickly i ment to put
and then you should be able to use this
myVariable =false
volControl_btn.onRelease = function() {
if (myVariable) {
globalSound.setVolume(100);
} else {
globalSound.setVolume(0);
}
myVariable = !myVariable;
};
http://kennybellew.com/tutorial/
scotty(-:
yep thats where i copied the first post’s text from