Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Sound Volume & Pan Control in Flash 5
Author: Sanjeevi Perumal Raj
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.
| » Level Advanced |
|
|
Added: : 2000-12-06
Rating: 6.44 Votes: 301
Hits: 1922
|
| » 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.
|
|
|