Skip to main content
Known Participant
November 26, 2020
Answered

go to url at end of movie using html5 canvas

  • November 26, 2020
  • 1 reply
  • 382 views

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");
    }

 

This topic has been closed for replies.
Correct answer ClayUUID

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.

1 reply

ClayUUIDCorrect answer
Legend
November 27, 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.

Known Participant
November 27, 2020

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