Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Audio

Categories Sound Volume & Pan Control in Flash 5
Author: Sanjeevi Perumal Raj

 
Page 6
«prev 1 2 3 4 5 6 7 8 9 next»

Increase Volume

The "+" Button is used to increase the volume of the sound. We need to add this action script:


on (release) {
tellTarget ("/") {
vol = music1.getVolume();
}
music1.setVolume(music1.getVolume()+5);
if (music1.getVolume()>=100) {
;
music1.setVolume(100);
}
}


When the mouse is released
music1.setVolume(music1.getVolume()+5);
will increment the volume of sound by 5.

«prev 1 2 3 4 5 6 7 8 9 next»

» Level Advanced

Added: : 2000-12-06
Rating: 6.43 Votes: 298
Hits: 1918
» Author
No information about the author has been provided.
» Download
Download the files used in this tutorial.
Download (32 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers