BlurAnimation

BlurAnimation

The ‘BlurAnimation’ class animates the blur filter of the target object.  If a blur filter does not currently exist for the target object, one is created and applied to it.

See Also

com.boostworthy.animation.management.types.abstract.Animation, com.boostworthy.animation.management.types.abstract.IAnimation

Summary
BlurAnimationThe ‘BlurAnimation’ class animates the blur filter of the target object.
Constants
PROPERTYMeta data for representing the property being animated.
DEFAULT_BLUR_XDefault value for the ‘blurX’ property of the blur filter.
DEFAULT_BLUR_YDefault value for the ‘blurY’ property of the blur filter.
DEFAULT_QUALITYDefault value for the quality setting of the blur filter.
Variables
m_nStartValueXHolds the starting value for the ‘blurX’ property.
m_nTargetValueXHolds the target value for the ‘blurX’ property.
m_nChangeValueXHolds the change in value for the ‘blurX’ property.
m_nStartValueYHolds the starting value for the ‘blurY’ property.
m_nTargetValueYHolds the target value for the ‘blurY’ property.
m_nChangeValueYHolds the change in value for the ‘blurY’ property.
m_nDurationHolds the duration of the animation in milliseconds.
m_nStartTimeHolds the starting time of the animation in milliseconds.
m_fncTransitionHolds a reference to the transition function being used for this animation.
m_objBlurHolds the blur filter to be applied to the target object.
m_aFiltersHolds a copy of all filters currently applied to the target object.
Functions
BlurAnimationConstructor.
renderRenders the animation.

Constants

PROPERTY

public static const PROPERTY: String

Meta data for representing the property being animated.

DEFAULT_BLUR_X

protected static const DEFAULT_BLUR_X: Number

Default value for the ‘blurX’ property of the blur filter.

DEFAULT_BLUR_Y

protected static const DEFAULT_BLUR_Y: Number

Default value for the ‘blurY’ property of the blur filter.

DEFAULT_QUALITY

protected static const DEFAULT_QUALITY: Number

Default value for the quality setting of the blur filter.

Variables

m_nStartValueX

protected var m_nStartValueX: Number

Holds the starting value for the ‘blurX’ property.

m_nTargetValueX

protected var m_nTargetValueX: Number

Holds the target value for the ‘blurX’ property.

m_nChangeValueX

protected var m_nChangeValueX: Number

Holds the change in value for the ‘blurX’ property.

m_nStartValueY

protected var m_nStartValueY: Number

Holds the starting value for the ‘blurY’ property.

m_nTargetValueY

protected var m_nTargetValueY: Number

Holds the target value for the ‘blurY’ property.

m_nChangeValueY

protected var m_nChangeValueY: Number

Holds the change in value for the ‘blurY’ property.

m_nDuration

protected var m_nDuration: Number

Holds the duration of the animation in milliseconds.

m_nStartTime

protected var m_nStartTime: Number

Holds the starting time of the animation in milliseconds.

m_fncTransition

protected var m_fncTransition: Function

Holds a reference to the transition function being used for this animation.

m_objBlur

protected var m_objBlur: BlurFilter

Holds the blur filter to be applied to the target object.

m_aFilters

protected var m_aFilters: Array

Holds a copy of all filters currently applied to the target object.

Functions

BlurAnimation

public function BlurAnimation(objTarget: DisplayObject,
nTargetValueX: Number,
nTargetValueY: Number,
nQuality: Number,
nDuration: Number,
strTransition: String,
uRenderMethod: uint)

Constructor.

Parameters

param objTarget The target object being animated.
param nTargetValueX The target value for the ‘blurX’ property of the target object’s blur filter.  A value that is a power of two is recommended for maximum performance.
param nTargetValueY The target value for the ‘blurX’ property of the target object’s blur filter.  A value that is a power of two is recommended for maximum performance.
param nQuality The quality of the blur being applied.
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. 

See Also

com.boostworthy.animation.easing.Transitions, com.boostworthy.animation.rendering.RenderMethod

render

public override function render():Boolean

Renders the animation.

Returns

A boolean value that is ‘true’ if the animation was updated successfully, ‘false’ if it was not. 

The ‘Animation’ class is the base class for all animation objects.
public static const PROPERTY: String
Meta data for representing the property being animated.
protected static const DEFAULT_BLUR_X: Number
Default value for the ‘blurX’ property of the blur filter.
protected static const DEFAULT_BLUR_Y: Number
Default value for the ‘blurY’ property of the blur filter.
protected static const DEFAULT_QUALITY: Number
Default value for the quality setting of the blur filter.
protected var m_nStartValueX: Number
Holds the starting value for the ‘blurX’ property.
protected var m_nTargetValueX: Number
Holds the target value for the ‘blurX’ property.
protected var m_nChangeValueX: Number
Holds the change in value for the ‘blurX’ property.
protected var m_nStartValueY: Number
Holds the starting value for the ‘blurY’ property.
protected var m_nTargetValueY: Number
Holds the target value for the ‘blurY’ property.
protected var m_nChangeValueY: Number
Holds the change in value for the ‘blurY’ property.
protected var m_nDuration: Number
Holds the duration of the animation in milliseconds.
protected var m_nStartTime: Number
Holds the starting time of the animation in milliseconds.
protected var m_fncTransition: Function
Holds a reference to the transition function being used for this animation.
protected var m_objBlur: BlurFilter
Holds the blur filter to be applied to the target object.
protected var m_aFilters: Array
Holds a copy of all filters currently applied to the target object.
public function BlurAnimation(objTarget: DisplayObject,
nTargetValueX: Number,
nTargetValueY: Number,
nQuality: Number,
nDuration: Number,
strTransition: String,
uRenderMethod: uint)
Constructor.
public override function render():Boolean
Renders the animation.
Close