Package: pumpkin.tweener

Tweener


Description

The Tweener class tweens object properties over time.

Supports most properties on DisplayObject & MovieClip classes.

KeyValues

transition (String): see TransitionType for available transitions, defaults to TransitionType.linear for linear motion.
time (float): Tween time in seconds.
delay (float): Delay tween for eg. 2 seconds.
onStartGameObject (GameObject): Target GameObject to call.
onStartGameObjectParams (Object): Argument to call SendMessage with on the target GameObject.
onStartGameMethod (String): Method to call SendMessage to on the target GameObject.
onUpdateGameObject (GameObject): Target GameObject to call.
onUpdateGameObjectParams (Object): Argument to call SendMessage with on the target GameObject.
onUpdateGameMethod (String): Method to call SendMessage to on the target GameObject.
onCompleteGameObject (GameObject): Target GameObject to call.
onCompleteGameObjectParams (Object): Argument to call SendMessage with on the target GameObject.
onCompleteGameMethod (String): Method to call SendMessage to on the target GameObject.
gotoAndStop (object): Movieclip frame tween target, can be interpolated.
colorTransform (Color): Transform color property.
x (float): float Transform x property.
y (float): float Transform y property.
rotation(float) : float Transform rotation property.
scaleX (float): float Transform scaleX property.
scaleY (float): float Transform scaleY property.
alpha (float): float Transform alpha property.


Transitions

linear
easeInQuad
easeOutQuad
easeInOutQuad
easeInCubic
easeOutCubic
easeInOutCubic
easeInQuart
easeOutQuart
easeInOutQuart
easeInQuint
easeOutQuint
easeInOutQuint
easeInSine
easeOutSine
easeInOutSine
easeInCirc
easeOutCirc
easeInOutCirc
easeInExpo
easeOutExpo
easeInOutExpo   
easeInElastic
easeOutElastic
easeInOutElastic
easeInBack
easeOutBack
easeInOutBack
easeInBounce
easeOutBounce
easeInOutBounce

Functions

addTweenWithParams

Add a tween to the target DisplayObject object.

addTween

Add a tween to the target DisplayObject object.

removeTweens

Remove all tweens from the target object.

Hash

Hashtable helper to initalise args on addTween eg. Hash( "valueA",1, "valueB",2 );.