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

Event listener for end of MP4 playback

Participant ,
Nov 06, 2021 Nov 06, 2021

Copy link to clipboard

Copied

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

Views

62

Translate

Translate

Report

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