com.haxepunk.tweens.motion.Motion
type
class
extends
com.haxepunk.Tween
subclasses
com.haxepunk.tweens.motion.CircularMotion
,
com.haxepunk.tweens.motion.CubicMotion
,
com.haxepunk.tweens.motion.LinearMotion
,
com.haxepunk.tweens.motion.LinearPath
,
com.haxepunk.tweens.motion.QuadMotion
,
com.haxepunk.tweens.motion.QuadPath
Base class for motion Tweens.
Constructor
new
(duration :
Float
, ?complete :
com.haxepunk.CompleteCallback
, ?type :
com.haxepunk.TweenType
, ?ease :
com.haxepunk.utils.EaseFunction
)
parameters
duration
Duration of the Tween.
complete
Optional completion callback.
type
Tween type.
ease
Optional easer function.
Constructor.
Instance Variables
hide inherited
show inherited
active
:
Bool
inherited from
com.haxepunk.Tween
percent
(getPercent,setPercent) :
Float
inherited from
com.haxepunk.Tween
scale
(getScale,null) :
Float
inherited from
com.haxepunk.Tween
x
:
Float
Current x position of the Tween.
y
:
Float
Current y position of the Tween.
Instance Methods
hide inherited
show inherited
DispatchCompleteEvent
() :
Void
inherited from
native.events.EventDispatcher
DispatchIOErrorEvent
() :
Void
inherited from
native.events.EventDispatcher
addEventListener
(type :
String
, listener :
Function
, ?useCapture :
Bool
, ?priority :
Int
, ?useWeakReference :
Bool
) :
Void
inherited from
native.events.EventDispatcher
cancel
() :
Void
inherited from
com.haxepunk.Tween
Immediately stops the Tween and removes it from its Tweener without calling the complete callback.
dispatchEvent
(event :
Event
) :
Bool
inherited from
native.events.EventDispatcher
hasEventListener
(type :
String
) :
Bool
inherited from
native.events.EventDispatcher
removeEventListener
(type :
String
, listener :
Function
, ?capture :
Bool
) :
Void
inherited from
native.events.EventDispatcher
start
() :
Void
inherited from
com.haxepunk.Tween
Starts the Tween, or restarts it if it's currently running.
toString
() :
String
inherited from
native.events.EventDispatcher
update
() :
Void
overrides
com.haxepunk.Tween
willTrigger
(type :
String
) :
Bool
inherited from
native.events.EventDispatcher