PackagedragonBones.events
Classpublic class AnimationEvent
InheritanceAnimationEvent Inheritance flash.events.Event

The AnimationEvent provides and defines all events dispatched during an animation.

See also

dragonBones.Armature
dragonBones.animation.Animation


Public Properties
 PropertyDefined By
  armature : Armature
[read-only] The armature that is the taget of this event.
AnimationEvent
  exMovementID : String
The preceding MovementData id.
AnimationEvent
  movementID : String
The current MovementData id.
AnimationEvent
Public Methods
 MethodDefined By
  
AnimationEvent(type:String, cancelable:Boolean = false)
Creates a new AnimationEvent instance.
AnimationEvent
Public Constants
 ConstantDefined By
  COMPLETE : String = complete
[static] Dispatched when the playback of a movement stops.
AnimationEvent
  LOOP_COMPLETE : String = loopComplete
[static] Dispatched when the playback of a movement completes a loop.
AnimationEvent
  MOVEMENT_CHANGE : String = movementChange
[static] Dispatched when the movement of animation is changed.
AnimationEvent
  START : String = start
[static] Dispatched when the playback of an animation starts.
AnimationEvent
Property Detail
armatureproperty
armature:Armature  [read-only]

The armature that is the taget of this event.


Implementation
    public function get armature():Armature
exMovementIDproperty 
public var exMovementID:String

The preceding MovementData id.

movementIDproperty 
public var movementID:String

The current MovementData id.

Constructor Detail
AnimationEvent()Constructor
public function AnimationEvent(type:String, cancelable:Boolean = false)

Creates a new AnimationEvent instance.

Parameters
type:String
 
cancelable:Boolean (default = false)
Constant Detail
COMPLETEConstant
public static const COMPLETE:String = complete

Dispatched when the playback of a movement stops.

LOOP_COMPLETEConstant 
public static const LOOP_COMPLETE:String = loopComplete

Dispatched when the playback of a movement completes a loop.

MOVEMENT_CHANGEConstant 
public static const MOVEMENT_CHANGE:String = movementChange

Dispatched when the movement of animation is changed.

STARTConstant 
public static const START:String = start

Dispatched when the playback of an animation starts.