Please let me know if this has already been covered elsewhere, but I couldn't seem to find it. Pretty self-explanatory really. I have a symbol that I want to play as soon as an audio file that I have ends which NEEDS to be triggered by the fact that the audio file has finished playing. I was wondering how I would go about doing this as I haven't had much luck so far.
Any suggestions would be very welcome as I need to get this done in the next couple of days.
Thanks in advance!
If you are playing the audio in a symbol for example on the symbol's timeline you can add your trigger at the end to the timeline:
or try this in compositionReady:
var music = sym.$("music");
music.addEventListener("ended", playEl, false);
// done playing