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

How can I load url in my current html5 animation

New Here ,
Jun 08, 2022 Jun 08, 2022

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

224
Translate
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

Community Expert , Jun 08, 2022 Jun 08, 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");
}

Translate
Community Expert ,
Jun 08, 2022 Jun 08, 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");
}

Translate
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
New Here ,
Jun 09, 2022 Jun 09, 2022
LATEST

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/1051767...

Translate
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