HTML5 canvas not running in browser without http://

Participant ,
Sep 22, 2019

Copy link to clipboard

Copied

Dear Friends,

 

iam creating HTML5 canvas with animate CC for an elearning course. Whein i press ctrl+Enter its working fine and shows the out put and in address bar it come as below:

http:// 127.0.0.1:8090/file1.html?3218.

After close the browser and run by double click from my computer location (F:\test\file1.html) it not working.

 

i want to complete this and send to one of my friend to view, its not working outside the compile. pls help me to run indvidually in browser to view my friends.

Note: in this project i have used tweening, masking and image inserted.

 

Thanks in Advance

Syed Abdul Rahim

Views

144

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Sep 23, 2019

Copy link to clipboard

Copied

Hi.

 

This is a security restriction that applies to any web content. This is not something specific to Animate.

 

Most websites cannot run offline without a local server.

So you're gonna have to setup one using Brackets, VS Code (using Live Server), or a software like XAMPP.

The Phaser documentation has an excellent explanation about this:
https://phaser.io/tutorials/getting-started-phaser3

 


Regards,
JC

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more