ScaleAnimation |
The ‘ScaleAnimation’ class animates the ‘scaleX’ and ‘scaleY’ properties of a display object. The advantage to using this animation type over the generic ‘PropertyAnimation’ is that it results in a smoother animation since the properties are updated very close to the same time. It also generates a single event for the animation rather than one for each property seperately.
com.boostworthy.animation.management.types.PropertyAnimation, com.boostworthy.animation.management.types.abstract.Animation, com.boostworthy.animation.management.types.abstract.IAnimation
ScaleAnimation | The ‘ScaleAnimation’ class animates the ‘scaleX’ and ‘scaleY’ properties of a display object. |
Constants | |
PROPERTY | Meta data for representing the property being animated. |
Variables | |
m_nStartValueX | Holds the starting value for the ‘scaleX’ property. |
m_nTargetValueX | Holds the target value for the ‘scaleX’ property. |
m_nChangeValueX | Holds the change in value for the ‘scaleX’ property. |
m_nStartValueY | Holds the starting value for the ‘scaleY’ property. |
m_nTargetValueY | Holds the target value for the ‘scaleY’ property. |
m_nChangeValueY | Holds the change in value for the ‘scaleY’ property. |
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 | |
ScaleAnimation | Constructor. |
render | Renders the animation. |
public function ScaleAnimation( objTarget: DisplayObject, nTargetValueX: Number, nTargetValueY: Number, nDuration: Number, strTransition: String, uRenderMethod: uint )
Constructor.
param | objTarget The target object being animated. |
param | nTargetValueX The target value for the ‘scaleX’ property of the target object. |
param | nTargetValueY The target value for the ‘scaleY’ property 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 ‘scaleX’ property.
protected var m_nStartValueX: Number
Holds the target value for the ‘scaleX’ property.
protected var m_nTargetValueX: Number
Holds the change in value for the ‘scaleX’ property.
protected var m_nChangeValueX: Number
Holds the starting value for the ‘scaleY’ property.
protected var m_nStartValueY: Number
Holds the target value for the ‘scaleY’ property.
protected var m_nTargetValueY: Number
Holds the change in value for the ‘scaleY’ property.
protected var m_nChangeValueY: 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 ScaleAnimation( objTarget: DisplayObject, nTargetValueX: Number, nTargetValueY: Number, nDuration: Number, strTransition: String, uRenderMethod: uint )
Renders the animation.
public override function render():Boolean