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

buttons not working when I launch html file

New Here ,
Jun 12, 2024 Jun 12, 2024

Copy link to clipboard

Copied

Hello. I have developeved a simple animation with buttons. The buttons each point to an external webpage.

 

this.blue.addEventListener("click", fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage() {
window.open("https://apps.usgs.gov/hivis/", "_blank");
}
 
When I launch the animation using control>test movie>in browser, the buttons work just fine. However, when I launch it using the html file, the animation loads, but the buttons don't work.
 
I am developing an interactive dashboard that will live on a large touchscreen system and I would like the office staff to simply be able to click on a file to launch the dashboard. I want to avoid having to install Animate on the host system. Is there a way to export, or other wise save, my animation so it will work as a standalone file in this scenario? So, someone can just open up a directory, click on the file, and "voila!" the animation (and the buttons) work.  
 
Thank you.
 
 

Views

86

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 Expert ,
Jun 12, 2024 Jun 12, 2024

Copy link to clipboard

Copied

your browser is blocking because of a cross-domain issue.  

 

why are you opening the html locally?

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
New Here ,
Jun 12, 2024 Jun 12, 2024

Copy link to clipboard

Copied

Yes. I am opening locally because I was thinking that's it might be used on the system. So, if I were to upload the file to a web server and access it on the Internet, you're saying the buttons will work? I could not that. I just didn't realize that opening it locally would break the buttons. 

 

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 Expert ,
Jun 12, 2024 Jun 12, 2024

Copy link to clipboard

Copied

Hi.

 

Yeah, should run your content from a online/remote server.

 

But if you really want to run it without a server, this fix may (or may not) work for you:
https://community.adobe.com/t5/animate-discussions/need-help-update-from-swf-files-to-html-files/m-p...

Regards,

JC

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
New Here ,
Jun 12, 2024 Jun 12, 2024

Copy link to clipboard

Copied

LATEST

Thanks.

 

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 Expert ,
Jun 12, 2024 Jun 12, 2024

Copy link to clipboard

Copied

correct.

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