1 Reply Latest reply on Oct 20, 2014 8:52 AM by resdesign

    Symbol plays when audio ends

    zimzalabim87 Level 1

      Hi all,


      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!



        • 1. Re: Symbol plays when audio ends
          resdesign Adobe Community Professional & MVP

          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")[0];

          music.addEventListener("ended", playEl, false);

          function playEl(){


          alert("sound stopped");


          music.bind('ended', function(){

              // done playing