Skip to main content
Participant
December 6, 2018
Answered

Buttons work when I test my html canvas but not when I open the html doc from its location.

  • December 6, 2018
  • 2 replies
  • 760 views

I created a simple html canvas with four buttons. They are all gotlandstop actions. Each stop frame has a back button on it that brings me back to the first frame.

When I choose "test" from the control menu it launches in my browser and works fine. When I try to open the html file from my finder it launches my browser and shows the first frame with all the button but nothing is clickable.

Anyone else running into this issue?

Thanks,

Tom

    This topic has been closed for replies.
    Correct answer Keyframer

    Thanks everyone I figured out what was wrong. Just a few clicks in the publish settings and blamo, problem solved.

    Thanks for your help.

    Tom

    2 replies

    KeyframerAuthorCorrect answer
    Participant
    December 19, 2018

    Thanks everyone I figured out what was wrong. Just a few clicks in the publish settings and blamo, problem solved.

    Thanks for your help.

    Tom

    JoãoCésar17023019
    Community Expert
    Community Expert
    December 6, 2018

    Hi.

    Two main reasons can be:

    - When you open your HTML from the local file system security issues may happen. So you have to setup a local or a online server to host your HTML and the other needed files.

    - If your button has a bitmap in it, you must use a vector shape in the hit frame to bypass security issues.

    I hope this helps.

    Regards,

    JC

    KeyframerAuthor
    Participant
    December 6, 2018

    Hi JC,

    Thanks for responding to my post.

    The client wants to be able to run this on their computers without having to access the internet. It's for their sales team and they don't always have access to the internet.

    They gave me a sample someone else had done that works fine when I launch the html file on my mac. I need to be able to give them something that runs locally.

    I do have vectors in the hit frame. There is only one bitmap in the scene. It's a bitmap illustration with vector buttons placed over top.

    Thanks,

    Tom

    Preran
    Legend
    December 10, 2018

    I don't think you quite got what the ACP said. You can set up a local server that you can use for this purpose.

    For example, Setup a Local Web Server on Windows, Mac, and Linux