May 2001
Intermediate to advanced
720 pages
23h 24m
English
Sound.getVolume( ) Method — retrieve the current volume setting
Flash 5
soundObject.getVolume( )
A number indicating the current volume as set by setVolume(
). Usually in the range
(no volume) to 100 (default volume), but it can be higher.
The getVolume( ) method is used to determine the
current volume of the sounds controlled by
soundObject. Normally,
getVolume( ) is used in combination with
setVolume( ) to adjust the current volume of a
sound.
Here we reduce the volume of a sound by 20:
mySound = new Sound( ); mySound.setVolume(mySound.getVolume( ) - 20);
Sound.setVolume( )
Read now
Unlock full access