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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dumb question about setVolume

Status
Not open for further replies.

dzr

Programmer
Nov 20, 2001
109
US
I have a button that when you rollover it changes graphics and makes a sound (named "buzz" in library). All works fine but I can't seem to lower the volume. It's too loud.

I have tried a couple things but this seems most logical (but it doesn't work) --

on(rollover){
buzz.setVolume(50);
}

sorry to always post such dumb questions!! :-\
 
are you making a sound object.... is the sounds identifier "buzz" or just the name in the library.... are you exporting for AS?

[conehead]
 
I'm a php geek and horrible in Flash so I apologize...

I imported the sound to the library and then dragged it into the "over" in the button edit screen. It works fine but the volume is very loud. I don't have any sound editing software so I was hoping to do it in the flash interface.

thanks...
 
try this:

1. In the library Right click the sound and select linkage.
2. Select Export for ActionScript
3. Leave the identifier as buzz
4. in the first frame of your movie, do this:
var BuzzSound = new Sound();
BuzzSound.setVolume(50);
5. republish movie....


try that...

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top