AnimationEvent

Event
AnimationEvent

The ‘AnimationEvent’ object extends upon the base ‘Event’ object by defining event type constants specific to animations, as well as offering getters for referencing the object and property being animated.

See Also

flash.events.Event

Summary
AnimationEventThe ‘AnimationEvent’ object extends upon the base ‘Event’ object by defining event type constants specific to animations, as well as offering getters for referencing the object and property being animated.
Constants
STARTEvent type constant for the ‘animationStart’ event.
CHANGEEvent type constant for the ‘animationChange’ event.
STOPEvent type constant for the ‘animationStop’ event.
FINISHEvent type constant for the ‘animationFinish’ event.
Variables
m_objTargetA reference to the object whose property is being animated.
m_strPropertyThe property being animated.
Functions
AnimationEventConstructor.
Properties
animTargetGetter for referencing the object whose property is being animated.
animPropertyGetter for referencing the property being animated.

Constants

START

public static const START: String

Event type constant for the ‘animationStart’ event.

CHANGE

public static const CHANGE: String

Event type constant for the ‘animationChange’ event.

STOP

public static const STOP: String

Event type constant for the ‘animationStop’ event.

FINISH

public static const FINISH: String

Event type constant for the ‘animationFinish’ event.

Variables

m_objTarget

protected var m_objTarget: Object

A reference to the object whose property is being animated.

m_strProperty

protected var m_strProperty: String

The property being animated.

Functions

AnimationEvent

public function AnimationEvent(strType: String,  
objTarget: Object = null,
strProperty: String = "")

Constructor.

Parameters

param strType The type of animation event.
param objTarget The object whose property is being animated.
param strProperty The property of the target object being animated. 

Properties

animTarget

public function get animTarget():Object

Getter for referencing the object whose property is being animated.

Returns

A reference to the object whose property is being animated. 

animProperty

public function get animProperty():String

Getter for referencing the property being animated.

Returns

The property being animated. 

public static const START: String
Event type constant for the ‘animationStart’ event.
public static const CHANGE: String
Event type constant for the ‘animationChange’ event.
public static const STOP: String
Event type constant for the ‘animationStop’ event.
public static const FINISH: String
Event type constant for the ‘animationFinish’ event.
protected var m_objTarget: Object
A reference to the object whose property is being animated.
protected var m_strProperty: String
The property being animated.
public function AnimationEvent(strType: String,  
objTarget: Object = null,
strProperty: String = "")
Constructor.
public function get animTarget():Object
Getter for referencing the object whose property is being animated.
public function get animProperty():String
Getter for referencing the property being animated.
Close