ColorAnimation |
The ‘ColorAnimation’ class animates the color of a display object.
com.boostworthy.animation.management.types.abstract.Animation, com.boostworthy.animation.management.types.abstract.IAnimation
ColorAnimation | The ‘ColorAnimation’ class animates the color of a display object. |
Constants | |
PROPERTY | Meta data for representing the property being animated. |
Variables | |
m_nStartValueR | Holds the starting value for the ‘red’ portion of the color. |
m_nTargetValueR | Holds the target value for the ‘red’ portion of the color. |
m_nChangeValueR | Holds the change in value for the ‘red’ portion of the color. |
m_nStartValueG | Holds the starting value for the ‘green’ portion of the color. |
m_nTargetValueG | Holds the target value for the ‘green’ portion of the color. |
m_nChangeValueG | Holds the change in value for the ‘green’ portion of the color. |
m_nStartValueB | Holds the starting value for the ‘blue’ portion of the color. |
m_nTargetValueB | Holds the target value for the ‘blue’ portion of the color. |
m_nChangeValueB | Holds the change in value for the ‘blue’ portion of the color. |
m_nDuration | Holds the duration of the animation in milliseconds. |
m_nStartTime | Holds the starting time of the animation in milliseconds. |
m_fncTransition | Holds a reference to the transition function being used for this animation. |
Functions | |
ColorAnimation | Constructor. |
render | Renders the animation. |
public function ColorAnimation( objTarget: DisplayObject, nTargetValue: Number, nDuration: Number, strTransition: String, uRenderMethod: uint )
Constructor.
param | objTarget The target object being animated. |
param | nTargetValue The target color value of the target object. |
param | nDuration The duration of the animation in milliseconds. |
param | strTransition The transition to be used for the animation. |
param | uRenderMethod The method being used to render this animation. |
com.boostworthy.animation.easing.Transitions, com.boostworthy.animation.rendering.RenderMethod
Meta data for representing the property being animated.
public static const PROPERTY: String
Holds the starting value for the ‘red’ portion of the color.
protected var m_nStartValueR: Number
Holds the target value for the ‘red’ portion of the color.
protected var m_nTargetValueR: Number
Holds the change in value for the ‘red’ portion of the color.
protected var m_nChangeValueR: Number
Holds the starting value for the ‘green’ portion of the color.
protected var m_nStartValueG: Number
Holds the target value for the ‘green’ portion of the color.
protected var m_nTargetValueG: Number
Holds the change in value for the ‘green’ portion of the color.
protected var m_nChangeValueG: Number
Holds the starting value for the ‘blue’ portion of the color.
protected var m_nStartValueB: Number
Holds the target value for the ‘blue’ portion of the color.
protected var m_nTargetValueB: Number
Holds the change in value for the ‘blue’ portion of the color.
protected var m_nChangeValueB: Number
Holds the duration of the animation in milliseconds.
protected var m_nDuration: Number
Holds the starting time of the animation in milliseconds.
protected var m_nStartTime: Number
Holds a reference to the transition function being used for this animation.
protected var m_fncTransition: Function
Constructor.
public function ColorAnimation( objTarget: DisplayObject, nTargetValue: Number, nDuration: Number, strTransition: String, uRenderMethod: uint )
Renders the animation.
public override function render():Boolean