Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Event listener for end of MP4 playback

Participant ,
Nov 06, 2021 Nov 06, 2021

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

TOPICS
ActionScript , Code , Other , Timeline
108
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation