DragonBones API Spec (V2.2) | All Packages | All Classes | Index | Frames | ![]() |
SoundEvent | Properties | Methods | Constants | |
Package | dragonBones.events |
Class | public class SoundEvent |
Inheritance | SoundEvent ![]() |
See also
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
SoundEvent(type:String, cancelable:Boolean = false)
Creates a new SoundEvent instance. | SoundEvent |
Constant | Defined By | ||
---|---|---|---|
SOUND : String = sound [static]
Dispatched when the animation of the animation enter a frame containing sound labels. | SoundEvent |
armature | property |
armature:Armature
[read-only] The armature that is the target of this event.
public function get armature():Armature
bone | property |
bone:Bone
[read-only] The bone that is the target of this event.
public function get bone():Bone
movementID | property |
public var movementID:String
sound | property |
public var sound:String
soundEffect | property |
public var soundEffect:String
SoundEvent | () | Constructor |
public function SoundEvent(type:String, cancelable:Boolean = false)
Creates a new SoundEvent instance.
Parameterstype:String | |
cancelable:Boolean (default = false )
|
SOUND | Constant |
public static const SOUND:String = sound
Dispatched when the animation of the animation enter a frame containing sound labels.