Event listener for end of MP4 playback

Explorer ,
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

13

Likes

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