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