AnimationManager

IEventDispatcher
AnimationManager

The ‘AnimationManager’ class creates a quick and easy approach to simple animations.  For more complex animation sequences, the ‘Timeline’ object is a better canidate.

See Also

com.boostworthy.animation.sequence.Timeline

Summary
AnimationManagerThe ‘AnimationManager’ class creates a quick and easy approach to simple animations.
Constants
DEFAULT_REFRESH_RATEConfigures the default refresh rate to be used.
DEFAULT_TRANSITIONConfigures the default animation transition.
DEFAULT_RENDER_METHODConfigures the default render method for rendering animations.
Variables
m_objFramebufferA framebuffer instance for managing all animations to be rendered.
Functions
AnimationManagerConstructor.
propertyAnimates any object’s property to the desired target value.
functionsAnimates any value that is accessed through get and set functions instead of getter/setters.
moveAnimates the ‘x’ and ‘y’ properties of a display object to the desired target values.
sizeAnimates the ‘width’ and ‘height’ properties of a display object to the desired target values.
scaleAnimates the ‘scaleX’ and ‘scaleY’ properties of a display object to the desired target values.
rotationAnimates the ‘rotation’ property of a display object to the desired target value.
alphaAnimates the ‘alpha’ property of a display object to the desired target value.
colorAnimates the color of a display object to the desired target color value.
brightnessAnimates the brightness of a ‘colorable’ object to the desired target color value.
contrastAnimates the contrast of a ‘colorable’ object to the desired target color value.
hueAnimates the hue of a ‘colorable’ object to the desired target color value.
saturationAnimates the saturation of a ‘colorable’ object to the desired target color value.
pulseAnimates any object’s property back and forth between a minimum and maximum value using a sine wave.
blurAnimates the ‘blurX’ and ‘blurX’ filter properties of a display object to the desired target values.
filterAnimates the property of any object’s filter to a specified target value.
disposePerforms any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to ‘null’, etc.
removeRemoves all instances of the specified object from the framebuffer.
removeAllRemoves all animations currently in the framebuffer.
initColorInitializes the color of a display object so that it’s color can be animated.
addEventListenerAdds an animation event listener to the framebuffer.
removeEventListenerRemoves an animation event listener from the framebuffer.
dispatchEventDispatches the specified event.
hasEventListenerCheck to see if the event dispatcher has any listeners registered for the specified event type.
willTriggerCheck to see if the event dispatcher or any of it’s ancestors have any listeners registered for the specified event type.
initInitializes this object.
setStageReferenceSets a global reference to the ‘Stage’ if one doesn’t already exist.

Constants

DEFAULT_REFRESH_RATE

protected const DEFAULT_REFRESH_RATE: Number

Configures the default refresh rate to be used.  This value is the interval in which animations being rendered using the ‘RenderMethod.TIMER’ method will be refreshed.  The value is in milliseconds.

See Also

com.boostworthy.animation.rendering.RenderMethod

DEFAULT_TRANSITION

protected const DEFAULT_TRANSITION: String

Configures the default animation transition.

See Also

com.boostworthy.animation.easing.Transitions

DEFAULT_RENDER_METHOD

protected const DEFAULT_RENDER_METHOD: uint

Configures the default render method for rendering animations.

See Also

com.boostworthy.animation.rendering.RenderMethod

Variables

m_objFramebuffer

protected var m_objFramebuffer: Framebuffer

A framebuffer instance for managing all animations to be rendered.

See Also

com.boostworthy.animation.management.Framebuffer

Functions

AnimationManager

public function AnimationManager()

Constructor.

property

public function property(objTarget: Object,  
strProperty: String,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates any object’s property to the desired target value. 

Parameters

param objTarget A reference to the object whose property is being animated.
param strProperty The name of the property being animated.
param nTargetValue The value the property is getting animated to.
param nDuration The duration of the animation in milliseconds.
param strTransition The transition to be used for the animation.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

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

functions

public function functions(objTarget: Object,  
strGetFunction: String,  
strSetFunction: String,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates any value that is accessed through get and set functions instead of getter/setters. 

Parameters

param objTarget A reference to the object whose functions are being used to animate a value.
param strGetFunction The get function of the target object that is being animated.
param strSetFunction The set function of the target object that is being animated.
param nTargetValue The target value the object’s value is getting animated to.
param nDuration The duration of the animation in milliseconds.
param strTransition The transition to be used for the animation.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

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

move

public function move(objTarget: DisplayObject,  
nTargetValueX: Number,  
nTargetValueY: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates the ‘x’ and ‘y’ properties of a display object to the desired target values. 

Parameters

param objTarget A reference to the object whose properties are being animated.
param nTargetValueX The target value for the ‘x’ property of the target object.
param nTargetValueY The target value for the ‘y’ property of the target object.
param nDuration The duration of the animation in milliseconds.
param strTransition The transition to be used for the animation.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

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

size

public function size(objTarget: DisplayObject,  
nTargetValueW: Number,  
nTargetValueH: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates the ‘width’ and ‘height’ properties of a display object to the desired target values. 

Parameters

param objTarget A reference to the object whose properties are 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.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

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

scale

public function scale(objTarget: DisplayObject,  
nTargetValueX: Number,  
nTargetValueY: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates the ‘scaleX’ and ‘scaleY’ properties of a display object to the desired target values. 

Parameters

param objTarget A reference to the object whose properties are being animated.
param nTargetValueX The target value for the ‘scaleX’ property of the target object.
param nTargetValueY The target value for the ‘scaleY’ property of the target object.
param nDuration The duration of the animation in milliseconds.
param strTransition The transition to be used for the animation.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

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

rotation

public function rotation(objTarget: DisplayObject,  
nTargetValue: Number,  
nDuration: Number,  
uNumRepeats: uint = 1,
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates the ‘rotation’ property of a display object to the desired target value. 

The advantage of using this method over the generic ‘Property’ method is that you can specify the amount of times the animation occurs using the ‘number of repeats’ parameter.  If the number of repeats is set to ‘1’, the animation will occur one time and animate the rotation property to the specified target value.  If a value other than ‘1’ is used, the animation will occur the set number of times, but instead of animating the rotation property to the target value, the target value will be added to the current rotation value each time the animation occurs.  A value of ‘0’ for the number of repeats will cause the animation to continue until it is manually removed. 

Parameters

param objTarget A reference to the object whose property is being animated.
param nTargetValue The target value for the ‘rotation’ property of the target object.  If a repeat count other than ‘1’ is used, this will be used as the amount to change the value instead of being a target value.
param nDuration The duration of the animation in milliseconds.
param uNumRepeats The number of times to repeat the animation.  A value of ‘0’ will cause the animation to continue until manually removed.
param strTransition The transition to be used for the animation.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

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

alpha

public function alpha(objTarget: DisplayObject,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates the ‘alpha’ property of a display object to the desired target value. 

The advantage to using this method over the method ‘Property’ is that a.) it is slightly faster since the property is hard-coded into the animation instead of dynamically accessed each update and more importantly b.) it checks the alpha property at the end of the animation and if the value is ‘0’, it sets the target object’s visibility to ‘false’.  If you need the visibility to remain untouched, use the ‘Property’ method instead. 

Parameters

param objTarget A reference to the object whose property is being animated.
param nTargetValue The target value for the ‘alpha’ property of the target object.
param nDuration The duration of the animation in milliseconds.
param strTransition The transition to be used for the animation.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

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

color

public function color(objTarget: DisplayObject,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates the color of a display object to the desired target color value. 

NOTE: If a display object doesn’t already have a color transformation object applied to it, use the ‘InitColor’ method to initialize it’s starting color. 

Parameters

param objTarget A reference to the object whose color value is being animated.
param nTargetValue The target color value of the target object.
param nDuration The duration of the animation in milliseconds.
param strTransition The transition to be used for the animation.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

InitColor, com.boostworthy.animation.easing.Transitions, com.boostworthy.animation.rendering.RenderMethod, DEFAULT_TRANSITION, DEFAULT_RENDER_METHOD

brightness

public function brightness(objTarget: IColorable,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates the brightness of a ‘colorable’ object to the desired target color value. 

Parameters

param objTarget A reference to the object whose brightness value is being animated.
param nTargetValue The target brightness value of the target object.
param nDuration The duration of the animation in milliseconds.
param strTransition The transition to be used for the animation.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

com.boostworthy.core.IColorable, com.boostworthy.animation.easing.Transitions, com.boostworthy.animation.rendering.RenderMethod, DEFAULT_TRANSITION, DEFAULT_RENDER_METHOD

contrast

public function contrast(objTarget: IColorable,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates the contrast of a ‘colorable’ object to the desired target color value. 

Parameters

param objTarget A reference to the object whose contrast value is being animated.
param nTargetValue The target contrast value of the target object.
param nDuration The duration of the animation in milliseconds.
param strTransition The transition to be used for the animation.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

com.boostworthy.core.IColorable, com.boostworthy.animation.easing.Transitions, com.boostworthy.animation.rendering.RenderMethod, DEFAULT_TRANSITION, DEFAULT_RENDER_METHOD

hue

public function hue(objTarget: IColorable,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates the hue of a ‘colorable’ object to the desired target color value. 

Parameters

param objTarget A reference to the object whose hue value is being animated.
param nTargetValue The target hue value of the target object.
param nDuration The duration of the animation in milliseconds.
param strTransition The transition to be used for the animation.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

com.boostworthy.core.IColorable, com.boostworthy.animation.easing.Transitions, com.boostworthy.animation.rendering.RenderMethod, DEFAULT_TRANSITION, DEFAULT_RENDER_METHOD

saturation

public function saturation(objTarget: IColorable,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates the saturation of a ‘colorable’ object to the desired target color value. 

Parameters

param objTarget A reference to the object whose saturation value is being animated.
param nTargetValue The target saturation value of the target object.
param nDuration The duration of the animation in milliseconds.
param strTransition The transition to be used for the animation.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

com.boostworthy.core.IColorable, com.boostworthy.animation.easing.Transitions, com.boostworthy.animation.rendering.RenderMethod, DEFAULT_TRANSITION, DEFAULT_RENDER_METHOD

pulse

public function pulse(objTarget: Object,  
strProperty: String,  
nMin: Number,  
nMax: Number,  
nDuration: Number,  
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates any object’s property back and forth between a minimum and maximum value using a sine wave.  In this case, the duration is how long a single wave cycle takes to occur, thus impacting the speed of the pulse.  A pulse animation will coninue to occur until it is removed from the framebuffer using the ‘Remove’ or ‘RemoveAll’ methods of this manager. 

Parameters

param objTarget A reference to the object whose property is being animated.
param strProperty The name of the property being animated.
param nMin The minimum value output by the pulse.
param nMax The maximum value output by the pulse.
param nDuration The amount of time it takes for one wave cycle (Min -> Max -> Min).
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

Remove, RemoveAll, com.boostworthy.animation.easing.Transitions, com.boostworthy.animation.rendering.RenderMethod, DEFAULT_TRANSITION, DEFAULT_RENDER_METHOD

blur

public function blur(objTarget: DisplayObject,  
nTargetValueX: Number,  
nTargetValueY: Number,  
nQuality: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

Animates the ‘blurX’ and ‘blurX’ filter properties of a display object to the desired target values. 

Parameters

param objTarget A reference to the object whose blur filter propertes are 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 ‘blurY’ 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.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

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

filter

public function filter(objTarget: DisplayObject,  
objFilter: Class,  
strProperty: String,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void

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. 

Parameters

param objTarget A reference to the object whose filter is 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.  If one is not specified, the ‘DEFAULT_TRANSITION’ is used.
param uRenderMethod The render method to use for rendering this object.  If one is not specified, the ‘DEFAULT_RENDER_METHOD’ is used. 

See Also

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

dispose

public function dispose():void

Performs any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to ‘null’, etc.

remove

public function remove(objTarget: Object):void

Removes all instances of the specified object from the framebuffer.

Parameters

param objTarget The object to remove from the framebuffer. 

removeAll

public function removeAll():void

Removes all animations currently in the framebuffer.

initColor

public function initColor(objTarget: DisplayObject,
nColorValue: Number):void

Initializes the color of a display object so that it’s color can be animated.  Use this method to set the starting color of a display object before calling the ‘Color’ method. 

Parameters

param objTarget The display object to initialize color for.
param nColorValue The color value to apply to the target display object. 

See Also

color

addEventListener

public function addEventListener(strType: String,  
fncListener: Function,  
bUseCapture: Boolean = false,
iPriority: int = 0,
bUseWeakReference: Boolean = false):void

Adds an animation event listener to the framebuffer. 

Parameters

param strType The event type being listened for.
param fncListener A reference to the event handler to be called upon the event being dispatched. 

See Also

com.boostworthy.animation.management.Framebuffer

removeEventListener

public function removeEventListener(strType: String,  
fncListener: Function,  
bUseCapture: Boolean = false):void

Removes an animation event listener from the framebuffer.

Parameters

param strType The event type being listened for.
param fncListener A reference to the event handler to be called upon the event being dispatched. 

See Also

com.boostworthy.animation.management.Framebuffer

dispatchEvent

public function dispatchEvent(objEvent: Event):Boolean

Dispatches the specified event.

Parameters

param objEvent The event to dispatch.

Returns

A value of ‘true’ unless ‘preventDefault()’ is called on the event, in which case it returns ‘false’. 

hasEventListener

public function hasEventListener(strType: String):Boolean

Check to see if the event dispatcher has any listeners registered for the specified event type.

Parameters

param strType The type of event.

Returns

A value of ‘true’ if a listener of the specified type is registered; ‘false’ otherwise. 

willTrigger

public function willTrigger(strType: String):Boolean

Check to see if the event dispatcher or any of it’s ancestors have any listeners registered for the specified event type.

Parameters

param strType The type of event.

Returns

A value of true if a listener of the specified type will be triggered; false otherwise. 

init

protected function init():void

Initializes this object.

setStageReference

protected function setStageReference(objTarget: DisplayObject):void

Sets a global reference to the ‘Stage’ if one doesn’t already exist.

Parameters

param objTarget A display object to grab a reference to the stage from. 

See Also

com.boostworthy.core.Global

The ‘IDisposable’ interface defines a common interface for all objects to encorporate garbage collection.
protected const DEFAULT_REFRESH_RATE: Number
Configures the default refresh rate to be used.
protected const DEFAULT_TRANSITION: String
Configures the default animation transition.
protected const DEFAULT_RENDER_METHOD: uint
Configures the default render method for rendering animations.
protected var m_objFramebuffer: Framebuffer
A framebuffer instance for managing all animations to be rendered.
public function AnimationManager()
Constructor.
public function property(objTarget: Object,  
strProperty: String,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates any object’s property to the desired target value.
public function functions(objTarget: Object,  
strGetFunction: String,  
strSetFunction: String,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates any value that is accessed through get and set functions instead of getter/setters.
public function move(objTarget: DisplayObject,  
nTargetValueX: Number,  
nTargetValueY: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the ‘x’ and ‘y’ properties of a display object to the desired target values.
public function size(objTarget: DisplayObject,  
nTargetValueW: Number,  
nTargetValueH: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the ‘width’ and ‘height’ properties of a display object to the desired target values.
public function scale(objTarget: DisplayObject,  
nTargetValueX: Number,  
nTargetValueY: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the ‘scaleX’ and ‘scaleY’ properties of a display object to the desired target values.
public function rotation(objTarget: DisplayObject,  
nTargetValue: Number,  
nDuration: Number,  
uNumRepeats: uint = 1,
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the ‘rotation’ property of a display object to the desired target value.
public function alpha(objTarget: DisplayObject,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the ‘alpha’ property of a display object to the desired target value.
public function color(objTarget: DisplayObject,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the color of a display object to the desired target color value.
public function brightness(objTarget: IColorable,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the brightness of a ‘colorable’ object to the desired target color value.
public function contrast(objTarget: IColorable,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the contrast of a ‘colorable’ object to the desired target color value.
public function hue(objTarget: IColorable,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the hue of a ‘colorable’ object to the desired target color value.
public function saturation(objTarget: IColorable,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the saturation of a ‘colorable’ object to the desired target color value.
public function pulse(objTarget: Object,  
strProperty: String,  
nMin: Number,  
nMax: Number,  
nDuration: Number,  
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates any object’s property back and forth between a minimum and maximum value using a sine wave.
public function blur(objTarget: DisplayObject,  
nTargetValueX: Number,  
nTargetValueY: Number,  
nQuality: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the ‘blurX’ and ‘blurX’ filter properties of a display object to the desired target values.
public function filter(objTarget: DisplayObject,  
objFilter: Class,  
strProperty: String,  
nTargetValue: Number,  
nDuration: Number,  
strTransition: String = DEFAULT_TRANSITION,
uRenderMethod: uint = DEFAULT_RENDER_METHOD):void
Animates the property of any object’s filter to a specified target value.
public function dispose():void
Performs any appropriate clean-up tasks for garbage collection such as removing event listeners, setting object references to ‘null’, etc.
public function remove(objTarget: Object):void
Removes all instances of the specified object from the framebuffer.
public function removeAll():void
Removes all animations currently in the framebuffer.
public function initColor(objTarget: DisplayObject,
nColorValue: Number):void
Initializes the color of a display object so that it’s color can be animated.
public function addEventListener(strType: String,  
fncListener: Function,  
bUseCapture: Boolean = false,
iPriority: int = 0,
bUseWeakReference: Boolean = false):void
Adds an animation event listener to the framebuffer.
public function removeEventListener(strType: String,  
fncListener: Function,  
bUseCapture: Boolean = false):void
Removes an animation event listener from the framebuffer.
public function dispatchEvent(objEvent: Event):Boolean
Dispatches the specified event.
public function hasEventListener(strType: String):Boolean
Check to see if the event dispatcher has any listeners registered for the specified event type.
public function willTrigger(strType: String):Boolean
Check to see if the event dispatcher or any of it’s ancestors have any listeners registered for the specified event type.
protected function init():void
Initializes this object.
protected function setStageReference(objTarget: DisplayObject):void
Sets a global reference to the ‘Stage’ if one doesn’t already exist.
Close