Search tutorials
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: 5.98 Votes: 301 |
| » Author |
| No information about the author has been provided. |
| » Download |
| Download the files used in this tutorial. |
| Download (32 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!