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