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

Offline project

Contributor ,
May 13, 2021 May 13, 2021

I created a canvas project specifically to use offline. I have unchecked the hosted library option, but the project does not appear to be using the js code. Here is the console error. 

 

DavidacrossAmerica_0-1620936875051.png

And here is where the code is referenced in the HTML file. 

DavidacrossAmerica_2-1620936875022.png

I tried disabling all the browser security setting to no avail. Then tried Firefox with these console errors:

DavidacrossAmerica_4-1620937048976.png

Seems it is all about accessing the js correctly, but I don't know how to make this happen. Again, this project needs to run from the files I will publish and not online. What can I do to make that work?

 

TOPICS
How to , Publish package
1.0K
Translate
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

correct answers 1 Correct answer

Community Expert , May 13, 2021 May 13, 2021

If you plan to send the files to other users then it's going to be hard for them to play your game because they would need to setup a server themselves.

 

But if it's for you only, then you can install something like XAMPP or download Visual Studio Code and install the Live Server extension.

 

Anyway, the output of the HTML5 Canvas document is essentially a website. And websites are meant to be used online.

 

Have you tried Netlify? You just need to drag and drop a folder containing the files of

...
Translate
Community Expert ,
May 13, 2021 May 13, 2021

Hi.

 

Even for offline usage most HTML documents need a local server.

 

Please see this answer.

 

Regards,

JC

Translate
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
Contributor ,
May 13, 2021 May 13, 2021

Well I don't know how to solve the problem then. I see this plugin for Flash. Is there a similar "projector" for Animate? Or would this work? https://exchange.adobe.com/creativecloud.details.1641.html

Translate
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 ,
May 13, 2021 May 13, 2021

If you plan to send the files to other users then it's going to be hard for them to play your game because they would need to setup a server themselves.

 

But if it's for you only, then you can install something like XAMPP or download Visual Studio Code and install the Live Server extension.

 

Anyway, the output of the HTML5 Canvas document is essentially a website. And websites are meant to be used online.

 

Have you tried Netlify? You just need to drag and drop a folder containing the files of your project to their website and in a matter of seconds your game will be online.

 

Please see this answer for more details about Netlify.

Translate
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
Contributor ,
May 13, 2021 May 13, 2021

Thanks. I think Netlify is the answer for this project. 

Translate
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
LEGEND ,
May 13, 2021 May 13, 2021

Another solution is Microsoft Azure Storage Explorer. If you upload files there you can then use the link to check your project.

Translate
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 ,
May 14, 2021 May 14, 2021
LATEST

Thanks for the suggestion, Marie! I'll take note.

Translate
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
LEGEND ,
May 13, 2021 May 13, 2021

If you're making a game exclusively to be played offline, you may as well just develop it in ActionScript and publish it as a projector EXE.

Translate
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
Contributor ,
May 14, 2021 May 14, 2021

Yeah, now I know, but I don't think I want to do all the code rewriting necessary at this point. Thanks.

Translate
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