Package | net.flashpunk.tweens.sound |
Class | public class Fader |
Inheritance | Fader Tween Object |
Method | Defined By | ||
---|---|---|---|
Fader(complete:Function = null, type:uint = 0)
Constructor. | Fader | ||
cancel():void
Immediately stops the Tween and removes it from its Tweener without calling the complete callback. | Tween | ||
fadeTo(volume:Number, duration:Number, ease:Function = null):void
Fades FP.volume to the target volume. | Fader | ||
start():void
Starts the Tween, or restarts it if it's currently running. | Tween | ||
update():void
Updates the Tween, called by World. | Tween |
Fader | () | Constructor |
public function Fader(complete:Function = null, type:uint = 0)
Constructor.
Parameterscomplete:Function (default = null ) — Optional completion callback.
| |
type:uint (default = 0 ) — Tween type.
|
fadeTo | () | method |
public function fadeTo(volume:Number, duration:Number, ease:Function = null):void
Fades FP.volume to the target volume.
Parameters
volume:Number — The volume to fade to.
| |
duration:Number — Duration of the fade.
| |
ease:Function (default = null ) — Optional easer function.
|