• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

HTML5 canvas not running in browser without http://

Participant ,
Sep 22, 2019 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

364

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 23, 2019 Sep 23, 2019

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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