Getting started with HTML5

http://renecastillotv.com/proservicios/

this is the testing link!

hmm… I have tested the link on Opera, Chrome, FF, IE, Edge, Safari, Android 8, iOS … no error messages… maybe needs to click somewhere on the app screen to reproduce the bug ?

Yes you are right, I just exported the whole folder - for test … Tried removing unused files from another project, and got it to 8mb … It just didn’t work for other reasons, so no upload.

something with saving and reading from system.DocumentsDirectory and using Composer at the same time, that “obviously”? don’t work … Didn’t have time to investigate yet!

What if I were to use display.loadRemoteImage(), in order to reduce the size of image assets, and only call for them when needed. 

Would that work?

sure, it will help to reduce the size of app… also one can to use network.download https://docs.coronalabs.com/api/library/network/download.html

@Mars Interactive, keep in mind that display.loadRemoteImage() is an async call and there may be noticeable lags if you go this route. Also, you have to provide callback functions to handle when the image completes. The network.download() API might be a bit more practical to download images in the background before you need them, or perhaps in conjunction with a loading screen. At the end of the day, you have to download the images either with the app bundle or through the app running and you will be trading time with one loading screen for time with an extra loading screen.

@Rene.castillo, I only see an error when I click on one of the buttons in the tabbar and that’s a regular Lua runtime error. Can you provide more information on how you’re getting this particular error (the one you reported above) to happen?

Rob

Hello, I would also like to ask if there is any example code for a very basic FB game using the new Corona HTML5?

Any help would be appreciated.  Thx!

The latest daily builds have an option to include the necessary files for FB instant games. However, if you need any server connectivity, then you would have to come up with that JavaScript code on your own for now. 

Rob

Hi, Rob, The error occurs only when testing on my mac book Air, i dont know why?

What browser are you using?

Rob

Google Chrome!

WHEN do yo estime will be a public version launched?

There are two possible questions being asked there.  

When will the next public release of Corona occur? Very soon. This public release of Corona will be the first public release with HTML5 beta enabled.

When will HTML5 leave beta? I can’t commit to that. There are a couple of really big features we have to complete first, like getting C++ based plugins working. We don’t have an ETA on this. I would hope that by the time we roll out the next public build (not the one up-coming, but the one after that) we would be about ready to come out of beta, but I can’t commit to that. There are too many things that can get in the way, like all the Google/Android changes we’ve been fighting recently, that could delay work we want to get done.

Rob

Hello Rob.

That’s a big news for me. And i am really happy to get a test game run through it. But here I have few questions:

  1. Once the build gets done, it automatically opens up on web browser. But how do I open it up locally again?

  2. On tapping index.html file, it takes says “Failed to load .bin file”

  3. On hittng OK, it enters the web browser and shows Corona screen but starts the enless loop of Downloading

  4. How do i make it run again for locally?

I am using macOS

>>2) On tapping index.html file, it takes says “Failed to load .bin file”

Try to clear target folder and rebuild the app. HTML5 builder does not alter existing intex.html in target folder. I guess mismatched index.html file was used.

>>4) How do i make it run again for locally?

Just  tapping on index.html file. It should work as before.

I am new to h5 and web based integrations. Please don’t angry on me and suggest from where to clear target folder?

Clear or delete the folder in “Save to folder:” and rebuild the app.

In this case target folder is /Users/mymac/Desktop/Clock

Ok. Thanks