Skip to main content
Participant
Jun 12, 2024 4:41 PM UTC
Question

buttons not working when I launch html file

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 is closed to new replies. Start a new post to keep the conversation going.

    7 replies

    Participant
    Aug 14, 2024 3:04 AM UTC

    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.

    Translate
    kglad
    Community Expert
    Community Expert
    Aug 14, 2024 1:56 PM UTC

    @joe_fed 

     

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

    Translate
    kglad
    Community Expert
    Community Expert
    Jun 12, 2024 5:00 PM UTC

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

     

    why are you opening the html locally?

    Translate
    Participant
    Jun 12, 2024 6:35 PM UTC

    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. 

     

    Translate
    JoãoCésar17023019
    Community Expert
    Community Expert
    Jun 12, 2024 7:06 PM UTC

    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

    Translate