PDA

View Full Version : music1.setVolume(X)


doug_cpp
11-17-2005, 01:34 PM
Hey nice guys, it is my first message at this forum, and it is a simple one:

How can I control the volume of the multiple Sounds objects in my movies?

i.e.: I want when the user press the button "SPEAK" the volume of the music be lowered to 10 and the voice volume be increased to 100. I used this:

on(release) {
music1.setVolume(10);
voice1.setVolume(100);
}

but it doesn't work because the volume seems to be one global thing. I know it is possible to control sound, but I can't do this. Can someone help me on this affair?

I will appreciate any trying :))
Thanks in advance!

oldnewbie
11-17-2005, 02:02 PM
Best soundObject tutorial ever!

http://www.kennybellew.com/tutorial/

And in your case, this section...

http://www.kennybellew.com/tutorial/independent.htm