Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Sound Volume & Pan Control in Flash 5
Author: Sanjeevi Perumal Raj
Decrease Volume
The "-" Button is used to decrease 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()<=0) {
;
music1.setVolume(0);
}
}
When the mouse is released
music1.setVolume(music1.getVolume()-5);
will reduce the volume of sound by 5.
| » Level Advanced |
|
|
Added: : 2000-12-06
Rating: 6.42 Votes: 297
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.
|
|
|