Skip to main content
kristofferhegge
Participating Frequently
Jan 8, 2019 3:56 PM UTC
Answered

HTML not working outside AnimateCC

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 is closed to new replies. Start a new post to keep the conversation going.
JoãoCésar17023019
JoãoCésar17023019Correct answer
Community Expert
Jan 8, 2019 4:54 PM UTC

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

19 replies

kristofferhegge
Participating Frequently
Jan 9, 2019 4:55 PM UTC

Was able to make it work locally using Brackets!

Thanks for all the help everyone!!

Translate
avid_body16B8
Legend
Jan 9, 2019 4:56 PM UTC

Translate
Participant
Jan 8, 2019 7:19 PM UTC

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.

Translate
JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
Jan 8, 2019 4:54 PM UTC

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

Translate
CharlesCaptain
Participating Frequently
Jan 28, 2020 3:04 AM UTC

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.

Translate
Inspiring
Jan 8, 2019 4:36 PM UTC

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

Translate
JoãoCésar17023019
Community Expert
Community Expert
Jan 8, 2019 4:55 PM UTC

Haha!

It was about time for this to become a meme.

Translate
avid_body16B8
Legend
Jan 9, 2019 2:36 PM UTC

I was going to say that! Haha!

Translate
avid_body16B8
Legend
Jan 8, 2019 4:36 PM UTC

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

Translate
kristofferhegge
Participating Frequently
Jan 9, 2019 11:51 AM UTC

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."

Translate