Skip to main content
Participant
June 8, 2022
Answered

How can I load url in my current html5 animation

  • June 8, 2022
  • 1 reply
  • 217 views

Right now I have this code in my timeline.

var _this = this;
/*
Loads the URL in a new browser window.
*/
window.open('#', '_top');

The url loads but replaces the adobe animate animation, I have tried different attributes but no success. Thanks

    This topic has been closed for replies.
    Correct answer Nick Gioia


    /* Click to Go to Web Page
    Clicking on the specified symbol instance loads the URL in a new browser window.

    Instructions:
    1. Replace http://www.adobe.com with the desired URL address.
    Keep the quotation marks ("").
    */

    this.test.addEventListener("click", fl_ClickToGoToWebPage);

    function fl_ClickToGoToWebPage() {
    window.open("http://www.adobe.com", "_blank");
    }

    1 reply

    Nick GioiaCommunity ExpertCorrect answer
    Community Expert
    June 8, 2022


    /* Click to Go to Web Page
    Clicking on the specified symbol instance loads the URL in a new browser window.

    Instructions:
    1. Replace http://www.adobe.com with the desired URL address.
    Keep the quotation marks ("").
    */

    this.test.addEventListener("click", fl_ClickToGoToWebPage);

    function fl_ClickToGoToWebPage() {
    window.open("http://www.adobe.com", "_blank");
    }

    Tania_rAuthor
    Participant
    June 9, 2022

    Thank you. I also thought about bringing the url as an iframe and found this,

    https://community.adobe.com/t5/animate-discussions/how-to-insert-an-iframe-in-animate-cc/m-p/10517677