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

Buttons to control volume

Status
Not open for further replies.

misswho

Instructor
Oct 21, 2003
17
0
0
SG
I have created several buttons as the volume control (from min vol. to max vol., say button 1 has the min volume and button 5 with the max vol.)Whenever I mouseOver or onPress button 1, the volume gets lowered and vice versa.

I suppose I need scripts for this one and is there any tutorial sites that teaches this example?

PLs help
 
You can set
Code:
the soundLevel
to change the system sound volume. The scale is from 0 (no sound) to 7 (max). However, especially on Windows,
Code:
the soundLevel
may not work properly, as many factors are involved in deciding the system sound volume level and you may not have control over them.

So, it's best to use
Code:
sprite(sprite channel num).volume
instead. The scale is 0 to 255.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top