SizeAnimation |
The ‘SizeAnimation’ class animates the ‘width’ and ‘height’ 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
SizeAnimation | The ‘SizeAnimation’ class animates the ‘width’ and ‘height’ properties of a display object. |
Constants | |
PROPERTY | Meta data for representing the property being animated. |
Variables | |
m_nStartValueW | Holds the starting value for the ‘width’ property. |
m_nTargetValueW | Holds the target value for the ‘width’ property. |
m_nChangeValueW | Holds the change in value for the ‘width’ property. |
m_nStartValueH | Holds the starting value for the ‘height’ property. |
m_nTargetValueH | Holds the target value for the ‘height’ property. |
m_nChangeValueH | Holds the change in value for the ‘height’ 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 | |
SizeAnimation | Constructor. |
render | Renders the animation. |
public function SizeAnimation( objTarget: DisplayObject, nTargetValueW: Number, nTargetValueH: Number, nDuration: Number, strTransition: String, uRenderMethod: uint )
Constructor.
param | objTarget The target object being animated. |
param | nTargetValueW The target value for the ‘width’ property of the target object. |
param | nTargetValueH The target value for the ‘height’ 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 ‘width’ property.
protected var m_nStartValueW: Number
Holds the target value for the ‘width’ property.
protected var m_nTargetValueW: Number
Holds the change in value for the ‘width’ property.
protected var m_nChangeValueW: Number
Holds the starting value for the ‘height’ property.
protected var m_nStartValueH: Number
Holds the target value for the ‘height’ property.
protected var m_nTargetValueH: Number
Holds the change in value for the ‘height’ property.
protected var m_nChangeValueH: 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 SizeAnimation( objTarget: DisplayObject, nTargetValueW: Number, nTargetValueH: Number, nDuration: Number, strTransition: String, uRenderMethod: uint )
Renders the animation.
public override function render():Boolean