Const
The Sound Complete Event.
This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they complete playback.
Listen to it from a Sound instance using Sound.on('complete', listener), i.e.:
Sound.on('complete', listener)
var music = this.sound.add('key');music.on('complete', listener);music.play(); Copy
var music = this.sound.add('key');music.on('complete', listener);music.play();
The Sound Complete Event.
This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they complete playback.
Listen to it from a Sound instance using
Sound.on('complete', listener), i.e.: