Action |
The ‘Action’ class represents an action to take place when a specified frame of the timeline that the action belongs to is rendered. Using an action, functions can be called (and passed parameters) seperately for forward and/or reverse playback.
com.boostworthy.animation.sequence.tweens.ITween
Action | The ‘Action’ class represents an action to take place when a specified frame of the timeline that the action belongs to is rendered. |
Constants | |
PROPERTY | Meta data for representing the property being animated. |
Variables | |
m_fncForward | The function to be called when the specified frame of this action is reached while the timeline playhead is moving forward. |
m_aParamsForward | Holds an array of parameters to pass to the forward function. |
m_fncReverse | The function to be called when the specified frame of this action is reached while the timeline playhead is moving in reverse. |
m_aParamsReverse | Holds an array of parameters to pass to the reverse function. |
m_uFirstFrame | The first frame of the tween. |
m_uLastFrame | The last frame of the tween. |
m_uPreviousFrame | Stores the previously rendered frame number. |
Functions | |
Action | Constructor. |
clone | Creates a new action 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 Action( fncForward: Function, aParamsForward: Array, fncReverse: Function, aParamsReverse: Array, uFrame: uint )
Constructor.
param | fncForward The function that will be called whenever the specified frame is hit while the timeline’s playhead is moving forward. |
param | aParamsForward An array of parameters to pass to the forward function. |
param | fncReverse The function that will be called whenever the specified frame is hit while the timeline’s playhead is moving in reverse. |
param | aParamsReverse An array of parameters to pass to the reverse function. |
param | uFrame The frame for this action to take place on. |
Meta data for representing the property being animated.
protected const PROPERTY: String
The function to be called when the specified frame of this action is reached while the timeline playhead is moving forward.
protected var m_fncForward: Function
Holds an array of parameters to pass to the forward function.
protected var m_aParamsForward: Array
The function to be called when the specified frame of this action is reached while the timeline playhead is moving in reverse.
protected var m_fncReverse: Function
Holds an array of parameters to pass to the reverse function.
protected var m_aParamsReverse: Array
The first frame of the tween.
protected var m_uFirstFrame: uint
The last frame of the tween.
protected var m_uLastFrame: uint
Stores the previously rendered frame number.
protected var m_uPreviousFrame: uint
Constructor.
public function Action( fncForward: Function, aParamsForward: Array, fncReverse: Function, aParamsReverse: Array, uFrame: uint )
Creates a new action 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