Skip to main content
Participant
June 12, 2024
Question

buttons not working when I launch html file

  • June 12, 2024
  • 2 replies
  • 526 views

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.
 
 
    This topic has been closed for replies.

    2 replies

    Participant
    August 14, 2024

    I am the main developer of HIVIS and the backend to HIVIS, the USGS National Imagery Management System (NIMS).

     

    Is this some capability we might want to conisder adding to HIVIS?  Always looking for better ways to serve the public.

    kglad
    Community Expert
    Community Expert
    August 14, 2024

    @joe_fed 

     

    is what "some capability we might want to conisder adding"?

    kglad
    Community Expert
    Community Expert
    June 12, 2024

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

     

    why are you opening the html locally?

    Participant
    June 12, 2024

    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. 

     

    JoãoCésar17023019
    Community Expert
    Community Expert
    June 12, 2024

    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/11412565#M335018

    Regards,

    JC