Closed vladimirmyshkovski closed 6 years ago
This is solve of the my issue:
function initialHandler(event) {
Voice = "resources/" + data.filename + ".wav";
playHandler();
}
function registerHandler() {
createjs.Sound.registerSound(Voice);
createjs.Sound.on("fileload", playHandler);
}
function playHandler() {
if(createjs.Sound.loadComplete(Voice)) {
createjs.Sound.play(Voice);
} else {
registerHandler()
}
}
Hey. I need to re-register the same file (it is overwritten on the backend) by the event. How can i do this?
If I try to register it, as described in the documentation, it is registered only once.
Thanks