Skip to main content
kristofferhegge
Participating Frequently
January 8, 2019
Answered

HTML not working outside AnimateCC

  • January 8, 2019
  • 5 replies
  • 8040 views

I'm having issues with making HTML5 Canvas-projects work in-browser outside of testing in AnimateCC.

During testing it works fine, however after publishing it shows up, but no animations or buttons work.

Other people who asked the same questiion fixed it by disabling spritesheets, and I've done this, but to no avail.

Also, all images used are in a folder within the same folder as the HTML- and Javascript-file.

Also the Javascript-file gives me a syntax error when i click it (type 800A03EA), but I don't know it this is relevant.

Any help would be much appreciated!

This topic has been closed for replies.
Correct answer JoãoCésar17023019

Hi.

Maybe you're facing some security issues.

Animate CC automatically setups a server for you when you test your application and that's why everything works the way it should.

When comes the time to run the page outside of Animate, you'll need to setup a local server (using something like XAMPP, Brackets, or the LiveServer extension for Visual Studio Code) or just upload your files to an online server.

Regards,

JC

5 replies

kristofferhegge
Participating Frequently
January 9, 2019

Was able to make it work locally using Brackets!

Thanks for all the help everyone!!

avid_body16B8
Legend
January 9, 2019

Participant
January 8, 2019

I had the same issue.

My html file wouldn't do any animations on my computer, but when I uploaded it to an online server, it worked fine.

JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
January 8, 2019

Hi.

Maybe you're facing some security issues.

Animate CC automatically setups a server for you when you test your application and that's why everything works the way it should.

When comes the time to run the page outside of Animate, you'll need to setup a local server (using something like XAMPP, Brackets, or the LiveServer extension for Visual Studio Code) or just upload your files to an online server.

Regards,

JC

CharlesCaptain
Participating Frequently
January 28, 2020

What do I need to do to get the Javascript to run on the server when I upload it to my website?  Do I need to add something in the code, or update my website settings?
I'm using Bluehost, if that makes a difference.

Inspiring
January 8, 2019

Assuming you have already unticked 'Export document as texture' in the Publish settings (as you mention you disabled spritesheets) then I'm wondering...

JoãoCésar17023019
Community Expert
Community Expert
January 8, 2019

Haha!

It was about time for this to become a meme.

avid_body16B8
Legend
January 9, 2019

I was going to say that! Haha!

avid_body16B8
Legend
January 8, 2019

have you checked the javascript console. If yes, what does it say?

kristofferhegge
Participating Frequently
January 9, 2019

The console gives 3 uncaught errors that are "most likely due to security restrictions on reading canvas pixel data with local or cross-domain images."