com.haxepunk.Tween

type
class
extends
native.events.EventDispatcher
subclasses
com.haxepunk.tweens.misc.Alarm, com.haxepunk.tweens.misc.AngleTween, com.haxepunk.tweens.misc.ColorTween, com.haxepunk.tweens.misc.MultiVarTween, com.haxepunk.tweens.misc.NumTween, com.haxepunk.tweens.misc.VarTween, com.haxepunk.tweens.motion.Motion, com.haxepunk.tweens.sound.Fader, com.haxepunk.tweens.sound.SfxFader

Constructor

new(duration : Float, ?type : TweenType, ?complete : CompleteCallback, ?ease : com.haxepunk.utils.EaseFunction)
parameters
duration Duration of the tween (in seconds or frames).
type Tween type, one of Tween.PERSIST (default), Tween.LOOPING, or Tween.ONESHOT.
complete Optional callback for when the Tween completes.
ease Optional easer function to apply to the Tweened value.
Constructor. Specify basic information about the Tween.

Instance Variables hide inherited show inherited

active : Bool

percent(get_percent,set_percent) : Float

scale(get_scale,null) : Float

Instance Methods hide inherited show inherited

DispatchCompleteEvent() : Void

DispatchIOErrorEvent() : Void

addEventListener(type : String, listener : Function, ?useCapture : Bool, ?priority : Int, ?useWeakReference : Bool) : Void

cancel() : Void

Immediately stops the Tween and removes it from its Tweener without calling the complete callback.

dispatchEvent(event : Event) : Bool

hasEventListener(type : String) : Bool

removeEventListener(type : String, listener : Function, ?capture : Bool) : Void

start() : Void

Starts the Tween, or restarts it if it's currently running.

toString() : String

update() : Void

Updates the Tween, called by World.

willTrigger(type : String) : Bool