PackagedragonBones.events
Classpublic class SoundEvent
InheritanceSoundEvent Inheritance flash.events.Event

The SoundEvent provides and defines all sound related 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 target of this event.
SoundEvent
  bone : Bone
[read-only] The bone that is the target of this event.
SoundEvent
  movementID : String
SoundEvent
  sound : String
SoundEvent
  soundEffect : String
SoundEvent
Public Methods
 MethodDefined By
  
SoundEvent(type:String, cancelable:Boolean = false)
Creates a new SoundEvent instance.
SoundEvent
Public Constants
 ConstantDefined By
  SOUND : String = sound
[static] Dispatched when the animation of the animation enter a frame containing sound labels.
SoundEvent
Property Detail
armatureproperty
armature:Armature  [read-only]

The armature that is the target of this event.


Implementation
    public function get armature():Armature
boneproperty 
bone:Bone  [read-only]

The bone that is the target of this event.


Implementation
    public function get bone():Bone
movementIDproperty 
public var movementID:String

soundproperty 
public var sound:String

soundEffectproperty 
public var soundEffect:String

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

Creates a new SoundEvent instance.

Parameters
type:String
 
cancelable:Boolean (default = false)
Constant Detail
SOUNDConstant
public static const SOUND:String = sound

Dispatched when the animation of the animation enter a frame containing sound labels.