Skip to main content
rickg1949
Known Participant
November 6, 2021
Question

Event listener for end of MP4 playback

  • November 6, 2021
  • 0 replies
  • 127 views

Did something change in latest version of Animate?

 

I am not getting response from event listener action to activate a GoToAndStop after a video finishes. Worked well in two modules back in 2018. Using this action on video frame.

//

var root = this;

this.movie1.on("added", function() {

$("#movie1").on("ended", function() {

movetoMenu();

});

});

function movetoMenu() {
console.log("go back to menu");
root.gotoAndStop(0);
}

 

Thanks in advance, rg

This topic has been closed for replies.