Volume
Inherits from:none (Volume is a root class)
- Version: 1.0
- Author: Brendan Dawes, adapted from original tween algorithm by Robert Penner
- Classpath: com.dragslidefade.Volume
- File last modified: Friday, 15 April 2005, 09:18:33
Changes the volume over time
Example:
var v:Volume = new Volume(instanceName,1);
v.changeVolume(10,15);
Summary
Constructor
Instance properties
Instance methods
Constructor
Volume
function Volume (
$target:MovieClip,
$depth:Number)
Parameters:
target:
the MovieClip containing the sound
depth :
the depth of the MovieClip
Instance properties
onVolumeComplete
onVolumeComplete:Function
Callback function triggered when the volume change has completed
onVolumeUpdate
onVolumeUpdate:Function
Callback function to communicate the current volume
Instance methods
changeVolume
function changeVolume (
v:Number,
duration:Number)
Parameters:
v :
the target volume
duration:
how long the volume change should take