Skip to main content
Participant
March 6, 2021
Question

HTML5 canvas buttons not working when export

  • March 6, 2021
  • 2 replies
  • 910 views

When I test the project the buttons work just fine but when I try to export, the buttons become unresponsive. I think that it may have to do with my publish settings but I'm not sure. Plz help me

This topic has been closed for replies.

2 replies

Participant
February 13, 2024

When I had this issue, it was because having both bitmaps and buttons in the same export was some sort of esoteric security risk. I didn't have any bitmaps in the file, but it was converting all my gradients into them. Go to publish settings and tell it to export image assets as Image Assets instead of as Textures. That'll fix it if it's the same problem as me.

 

kglad
Community Expert
Community Expert
March 6, 2021

open your browser's developer console and check for errors.

Participant
November 10, 2022

Hey kglad,

The thing is that the user interface of animate is so well crafted and helps with code snippets and stuff that it should work when exported - People that are not able to check for code for errors work with animate, because they are not used to code. It seems to be often the case that "actions" do not work when exported. Found realy often this issue... is there maybe something that is wrong in the export settings? Cause if tested it already works - and to have the assumption that an already tested project should work when it is exported seems not feasable with animate...
Thanks for any other adive 

kglad
Community Expert
Community Expert
November 11, 2022

animate doesn't check for a lot of things that cause errors.  and it gives some warnings that a lot of people ignore and then come here an don't understand why their code is failing.

 

i've never seen a report of someone saying their error-free code wasn't included and working in the published work.  and saying "actions" don't work, imo is more accurately stated: you made an error causing the actions to "not work".

 

if you think otherwise, post your best example.