Thanks, but no longer needed. I was stupidly wrong. Copied the function from the documentation and didn’t notice that there was no arrow function there.
That’s correct:
onLoad() {
var id = cc.audioEngine.play(this.audio1, false, 1);
cc.audioEngine.setFinishCallback(id, () => {
cc.audioEngine.play(this.audio2, false, 1);
});
}