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

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

177

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

LEGEND , 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.

Votes

Translate

Translate
LEGEND ,
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.

Votes

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!

Votes

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