Fork me on GitHub
View source

package com.haxepunk.tweens.misc

class VarTween


extends Tween

Tweens a numeric public property of an Object.

Constructor

View source

new (complete : Dynamic ->Void, , type : TweenType) : Void

Constructor.


Parameters:
complete   

Optional completion callback.

type   

Tween type.

Functions

View source

tween (object : Dynamic, property : String, to : Float, duration : Float, ?ease : Float ->Float, ) : Void

Tweens a numeric public property.


Parameters:
object   

The object containing the property.

property   

The name of the property (eg. "x").

to   

Value to tween to.

duration   

Duration of the tween.

ease   

Optional easer function.