AdvancedTween |
The ‘AdvancedTween’ class tweens the property of an object using a path as a graph. The ‘x’ axis of the path represents the frames and the ‘y’ axis represents the value of the property.
com.boostworthy.animation.sequence.tweens.ITween, com.boostworthy.geom.Path
AdvancedTween | The ‘AdvancedTween’ class tweens the property of an object using a path as a graph. |
Constants | |
DEFAULT_TRANSITION | The default transition to use for the tween. |
Variables | |
m_objToTween | A reference to the object to be tweened. |
m_strProperty | The object’s property that is getting tweened. |
m_objPath | Holds a path object whose ‘x’ axis represents the frame number and ‘y’ axis represents the property value. |
m_uFirstFrame | The first frame of the tween. |
m_uLastFrame | The last frame of the tween. |
m_strTransition | The name of the transition to be used for the tween. |
m_fncTransition | A reference to the transition being used for the tween. |
m_bIsDirty | Determines whether or not this tween has changed and needs compared towards it’s target value again. |
Functions | |
AdvancedTween | Constructor. |
clone | Creates a new advanced tween object that is a clone of this object. |
renderFrame | Renders the specified frame. |
Properties | |
firstFrame | Gets the first frame of the timeline that has a keyframe on it. |
lastFrame | Gets the last frame of the timeline that has a keyframe on it. |
target | Gets a reference to the target object being tweened. |
property | Gets a string of the target property. |
public function AdvancedTween( objToTween: Object, strProperty: String, objPath: Path, strTransition: String = DEFAULT_TRANSITION )
Constructor.
param | objToTween The object to be tweened. |
param | strProperty The object’s property that is getting tweened. |
param | objPath The path object to use as data for this tween. The ‘x’ axis of the path represents the frame number and the ‘y’ axis represents the property value. |
param | strTransition The name of the transition to be used for the tween. |
com.boostworthy.animation.easing.Transitions, com.boostworthy.geom.Path
The default transition to use for the tween.
protected const DEFAULT_TRANSITION: String
A reference to the object to be tweened.
protected var m_objToTween: Object
The object’s property that is getting tweened.
protected var m_strProperty: String
Holds a path object whose ‘x’ axis represents the frame number and ‘y’ axis represents the property value.
protected var m_objPath: Path
The first frame of the tween.
protected var m_uFirstFrame: uint
The last frame of the tween.
protected var m_uLastFrame: uint
The name of the transition to be used for the tween.
protected var m_strTransition: String
A reference to the transition being used for the tween.
protected var m_fncTransition: Function
Determines whether or not this tween has changed and needs compared towards it’s target value again.
protected var m_bIsDirty: Boolean
Constructor.
public function AdvancedTween( objToTween: Object, strProperty: String, objPath: Path, strTransition: String = DEFAULT_TRANSITION )
Creates a new advanced tween object that is a clone of this object.
public function clone():ITween
Renders the specified frame.
public function renderFrame( uFrame: uint ):void
Gets the first frame of the timeline that has a keyframe on it.
public function get firstFrame():uint
Gets the last frame of the timeline that has a keyframe on it.
public function get lastFrame():uint
Gets a reference to the target object being tweened.
public function get target():Object
Gets a string of the target property.
public function get property():String