Can't customize HTML5 Preloader

I specified and provided a custom class inside the app tag of my NMML, and it follows that as expected for the Flash target. I'm also aware that the CPP targets don't use the preloader. But what about the HTML5 target? It still seems to use the default…

Viewing 1 to 4 (4 Total)
Can't customize HTML5 Preloader

Jon

Jon
Total Posts: 279
Joined: March 08, 2012

I specified and provided a custom class inside the app tag of my NMML, and it follows that as expected for the Flash target. I'm also aware that the CPP targets don't use the preloader.

But what about the HTML5 target? It still seems to use the default (gray bar on white) despite me providing this custom class. Is it triggered a different way?

Tags:
Posted on July 19, 2012 at 2:35 AM

singmajesty

singmajesty
Total Posts: 2192
Joined: August 25, 2011

Re: Can't customize HTML5 Preloader

You're right -- the ApplicationMain.hx file for the HTML5 target was not configured to allow a custom preloader. Sorry about that!

This has been fixed on the source repository. If you want, you can patch your "tools/command-line/html5/haxe/ApplicationMain.hx" file using the updated version:

http://raw.github.com/jgranick/NME/master/tools/command-line/html5/...

Posted on July 19, 2012 at 1:00 PM

Jon

Jon
Total Posts: 279
Joined: March 08, 2012

Re: Can't customize HTML5 Preloader

Thanks for the quick fix!

While we're talking about this - is there a way to refer to an image within the HTML5 preloader? For Flash, I can use the embed method. For HTML5, is there anything equivalent I can do? (trying to use Assets.getBitmapData understandably bombs out.

Posted on July 20, 2012 at 12:07 AM

Jon

Jon
Total Posts: 279
Joined: March 08, 2012

Re: Can't customize HTML5 Preloader

Any thoughts on that question about having images within the HTML5 preloader?

Posted on July 23, 2012 at 7:20 PM