FilterAnimation |
The ‘FilterAnimation’ class animates the property of any object’s filter to a specified target value. The filter must already be applied to the display object; one will not be added for you if it is not present.
com.boostworthy.animation.management.types.abstract.Animation, com.boostworthy.animation.management.types.abstract.IAnimation
FilterAnimation | The ‘FilterAnimation’ class animates the property of any object’s filter to a specified target value. |
Variables | |
m_nStartValue | Holds the starting value for the filter’s property. |
m_nTargetValue | Holds the target value for the filter’s property. |
m_nChangeValue | Holds the change in value for the filter’s 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. |
m_objFilter | Holds the filter whose property is being animated. |
Functions | |
FilterAnimation | Constructor. |
render | Renders the animation. |
getFilters | Gets an array containing all the target object’s filters, except for the target filter. |
getTargetFilter | Gets a reference to the target filter. |
updateTargetFliter | Updates the target filter by applying the specified value to it’s property, then reapplies itself to the target object. |
public function FilterAnimation( objTarget: DisplayObject, objFilter: Class, strProperty: String, nTargetValue: Number, nDuration: Number, strTransition: String, uRenderMethod: uint )
Constructor.
param | objTarget The target object being animated. |
param | objFilter The filter class whose property is being animated. The filter must already be applied to the display object prior to being animated. |
param | strProperty The property of the target object’s filter that is being animated. |
param | nTargetValue The value the property is being animated to. |
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
Holds the starting value for the filter’s property.
protected var m_nStartValue: Number
Holds the target value for the filter’s property.
protected var m_nTargetValue: Number
Holds the change in value for the filter’s property.
protected var m_nChangeValue: 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
Holds the filter whose property is being animated.
protected var m_objFilter: Class
Constructor.
public function FilterAnimation( objTarget: DisplayObject, objFilter: Class, strProperty: String, nTargetValue: Number, nDuration: Number, strTransition: String, uRenderMethod: uint )
Renders the animation.
public override function render():Boolean
Gets an array containing all the target object’s filters, except for the target filter.
protected function getFilters():Array
Gets a reference to the target filter.
protected function getTargetFilter():BitmapFilter
Updates the target filter by applying the specified value to it’s property, then reapplies itself to the target object.
protected function updateTargetFliter( nValue: Number ):void