FilterTween |
The ‘FilterTween’ class tweens the property of any object’s filter to a specified target value.
com.boostworthy.animation.sequence.tweens.ITween
FilterTween | The ‘FilterTween’ class tweens the property of any object’s filter to a specified target value. |
Constants | |
DEFAULT_TRANSITION | The default transition to use for the tween. |
Variables | |
m_objToTween | A reference to the display object to be tweened. |
m_strProperty | The property of the display object’s filter that is being animated. |
m_uFirstFrame | The first frame of the tween. |
m_uLastFrame | The last frame of the tween. |
m_nStartValue | Holds the starting value for the property being tweened. |
m_nTargetValue | Holds the target value for the property being tweened. |
m_nChangeValue | Holds the change in value for the property being tweened. |
m_strTransition | The name of the transition to be used for the tween. |
m_fncTransition | A reference to the transition being used for the tween. |
m_bIsDirty | Determines whether or not this tween has changed and needs compared towards it’s target value again. |
m_objFilter | Holds the filter whose property is being animated. |
Functions | |
FilterTween | Constructor. |
clone | Creates a new filter tween object that is a clone of this object. |
renderFrame | Renders the specified frame. |
Properties | |
firstFrame | Gets the first frame of the timeline that has a keyframe on it. |
lastFrame | Gets the last frame of the timeline that has a keyframe on it. |
target | Gets a reference to the target object being tweened. |
property | Gets a string of the target property. |
Functions | |
getFilters | Gets an array containing all the target object’s filters, except for the target filter. |
getTargetFilter | Gets a reference to the target filter. |
updateTargetFilter | Updates the target filter by applying the specified value to it’s property, then reapplies itself to the target object. |
public function FilterTween( objToTween: DisplayObject, objFilter: Class, strProperty: String, nTargetValue: Number, uFirstFrame: uint, uLastFrame: uint, strTransition: String = DEFAULT_TRANSITION )
Constructor.
param | objToTween The display object to be tweened. |
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 display object’s filter that is being animated. |
param | nTargetValue The value the property is getting tweened to. |
param | uFirstFrame The first frame of the tween. |
param | uLastFrame The last frame of the tween. |
param | strTransition The name of the transition to be used for the tween. |
com.boostworthy.animation.easing.Transitions
The default transition to use for the tween.
protected const DEFAULT_TRANSITION: String
A reference to the display object to be tweened.
protected var m_objToTween: DisplayObject
The property of the display object’s filter that is being animated.
protected var m_strProperty: String
The first frame of the tween.
protected var m_uFirstFrame: uint
The last frame of the tween.
protected var m_uLastFrame: uint
Holds the starting value for the property being tweened.
protected var m_nStartValue: Number
Holds the target value for the property being tweened.
protected var m_nTargetValue: Number
Holds the change in value for the property being tweened.
protected var m_nChangeValue: Number
The name of the transition to be used for the tween.
protected var m_strTransition: String
A reference to the transition being used for the tween.
protected var m_fncTransition: Function
Determines whether or not this tween has changed and needs compared towards it’s target value again.
protected var m_bIsDirty: Boolean
Holds the filter whose property is being animated.
protected var m_objFilter: Class
Constructor.
public function FilterTween( objToTween: DisplayObject, objFilter: Class, strProperty: String, nTargetValue: Number, uFirstFrame: uint, uLastFrame: uint, strTransition: String = DEFAULT_TRANSITION )
Creates a new filter tween object that is a clone of this object.
public function clone():ITween
Renders the specified frame.
public function renderFrame( uFrame: uint ):void
Gets the first frame of the timeline that has a keyframe on it.
public function get firstFrame():uint
Gets the last frame of the timeline that has a keyframe on it.
public function get lastFrame():uint
Gets a reference to the target object being tweened.
public function get target():Object
Gets a string of the target property.
public function get property():String
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 updateTargetFilter( nValue: Number ):void