|
.volumeTo() Applies To Sound Availability Flash 6 and above, using AS1. Usage <Sound>.volumeTo(volume [, seconds, animation type, delay, callback, extra1, extra2]); Parameters volume : Desired volume, in percent. Usually from 0 to 100. Returns Nothing. Description Shortcut method; does a sound fade on aSound object, going to an specific volume setting. This the tweening equivalent of using Sound.setVolume(). Examples // Turns off a sound object by fading it out for 0.5 seconds, using a linear transition <Sound>.volumeTo(0, 0.5, "linear"); See Also |