Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Volume slider for global sound? 1

Status
Not open for further replies.

MidiRipper

Technical User
Feb 26, 2002
2
US
Is it possible to create a volume slider for all sounds globally. Meaning, instead of having it control a sound that you specify. But controlling all sounds no matter when they are loaded, etc.

'Ripper

PS: This is my first post. And thanks for any help!
 
Hi MidiRipper.

I found a way that works.. I think it's a bug but I have used it in over 30 multimedia presentations.

Import a wav or mp3 with no sound.. Just total silence.
In the library, right click on it and go to "Linkage" and click Export this symbol. Give it an identifier name. Dont put this on the timeline anywhere.

Now on frame 1 put:
starting_volume=100;
n = new Sound();
n.attachSound("identifierName");
n.setVolume(starting_volume);
n.start(0,9999);


Now if you change the volume of "n" based on a slider it will change all global sounds. You can test this by importing your silent sound and a song. Put the song on any frame with these actions still on frame 1 and change the value of "starting_volume". It will change the volume of the song also. If this is confusing let me know. I am bad at explaining things.. If you need it, I will make a .Fla for you to copy.

-Nukoi
 
Thanks alot for the help. I'll have to try it out. However, I have section in my timelines that stop all sounds...hmmm, it will be interesting to figure this out.
Thanks again for the great information and quick response.

'Ripper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top