go to url at end of movie using html5 canvas

Community Beginner ,
Nov 26, 2020 Nov 26, 2020

Copy link to clipboard

Copied

I have a short animation, at the end of which I want the web page to go directly to another url.

 

I can see the code smippet in the action that allows me to add a clickable link, but I want it to transfer automatically. Is this possible?

 

I clicked on an object in the timeline and have got so far as adding the following action on the last keyframe, can anybody tell me what should I change? I tried changing "click" to "complete" and "ended" but neither seemed to work.

 

    this.movieClip_1.addEventListener("click", fl_ClickToGoToWebPage_1);

    function fl_ClickToGoToWebPage_1() {
    window.open("index.php", "_self");
    }

 

TOPICS
Code , How to

Views

91

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

correct answers 1 Correct answer

Adobe Community Professional , Nov 26, 2020 Nov 26, 2020
I assume you can see the line of code that performs the actual web page load. So just... put that code in the last frame.

Likes

Translate

Translate
Adobe Community Professional ,
Nov 26, 2020 Nov 26, 2020

Copy link to clipboard

Copied

I assume you can see the line of code that performs the actual web page load. So just... put that code in the last frame.

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
Community Beginner ,
Nov 26, 2020 Nov 26, 2020

Copy link to clipboard

Copied

LATEST

so simple, I was way overthinking it!  Thank you so much!

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