PulseAnimation |
The ‘PulseAnimation’ class animates any object’s property back and forth between a minimum and maximum value using a sine wave.
com.boostworthy.animation.management.types.abstract.Animation, com.boostworthy.animation.management.types.abstract.IAnimation
PulseAnimation | The ‘PulseAnimation’ class animates any object’s property back and forth between a minimum and maximum value using a sine wave. |
Variables | |
m_nMin | Holds the minimum value output by the pulse. |
m_nMax | Holds the maximum value output by the pulse. |
m_nDuration | Holds the duration of the animation in milliseconds. |
m_nStartTime | Holds the starting time of the animation in milliseconds. |
m_nValue | Holds the distance between the min/max and the median. |
m_nMedian | The median value of the min/max. |
Functions | |
PulseAnimation | Constructor. |
render | Renders the animation. |
public function PulseAnimation( objTarget: Object, strProperty: String, nMin: Number, nMax: Number, nDuration: Number, uRenderMethod: uint )
Constructor.
param | objTarget The target object being animated. |
param | strProperty The property of the target object that is being animated. |
param | nMin The minimum value output by the pulse. |
param | nMax The maximum value output by the pulse. |
param | nDuration The duration of the animation in milliseconds. |
param | uRenderMethod The method being used to render this animation. |
com.boostworthy.animation.rendering.RenderMethod
Holds the minimum value output by the pulse.
protected var m_nMin: Number
Holds the maximum value output by the pulse.
protected var m_nMax: 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 the distance between the min/max and the median.
protected var m_nValue: Number
The median value of the min/max.
protected var m_nMedian: Number
Constructor.
public function PulseAnimation( objTarget: Object, strProperty: String, nMin: Number, nMax: Number, nDuration: Number, uRenderMethod: uint )
Renders the animation.
public override function render():Boolean