NMEPreloader & haxe relative paths

It appears that compiling with nme generates a preloader for the swf. Is there a way to disable this or implement a custom preloader? Also, relating to haxe: It appears that directives in hxml files are written in relation from where haxe is being e…

Viewing 1 to 7 (7 Total)
NMEPreloader & haxe relative paths

dlots

dlots
Total Posts: 23
Joined: September 22, 2011

It appears that compiling with nme generates a preloader for the swf. Is there a way to disable this or implement a custom preloader?

Also, relating to haxe:

It appears that directives in hxml files are written in relation from where haxe is being executed as opposed to location of the hxml file. For example, the generated release.hxml file specifies:

-cp .
-cp bin/flash/haxe

Tags:
Posted on September 25, 2011 at 11:17 AM

dlots

dlots
Total Posts: 23
Joined: September 22, 2011

Re: NMEPreloader & haxe relative paths

Also, from what is the Assets.hx generated? In samples/02-Text it references icon.png which seems like it is generated from the svg specified in the icon tag.

Posted on September 25, 2011 at 11:20 AM

singmajesty

singmajesty
Total Posts: 2192
Joined: August 25, 2011

Re: NMEPreloader & haxe relative paths

That's strange. I'm looking at samples/02-Text/Sample.hx now, but I don't see any references to Assets.hx

There was an old Assets.hx file that was generated by the install tool, which I couldn't find any references to in the repository, so I removed it. It was conflicting with a new class I created, nme.Assets, which provides a strongly-typed method for loading assets (like Assets.getBitmapData or Assets.getSound)

It is possible to use your own class for the preloader, but I have not personally tested this.

Try adding <set name="PRELOADER_NAME" value="your.Preloader" /> to your NMML file to tell it to use your own class instead of the default.

When I have a chance, I'm also going to change the default to be a little more plain

Posted on September 26, 2011 at 10:32 AM

dimanux

dimanux
Total Posts: 40
Joined: September 01, 2011

Re: NMEPreloader & haxe relative paths

Hello guys,
I have few questions about custom preloader:
1) how to load images in preloader from Assets folder? Is it possible? Or there is another way to draw images in preloader?
2) How to make splash screens before loading swf?
3) How about CPP target preloader? I want to make a progress bar while game loading. How to do it in nme?

Posted on October 22, 2011 at 5:44 PM

sanghuacai

sanghuacai
Total Posts: 37
Joined: September 27, 2011

Re: NMEPreloader & haxe relative paths

About NMML

I just write another preloader and overwrite the file in NME lib, and find better way here.
It seems that NMML file has some surprising useful tags!

But can anyone give some doc for NMML?

smiling

Posted on October 23, 2011 at 10:05 PM

sanghuacai

sanghuacai
Total Posts: 37
Joined: September 27, 2011

Re: NMEPreloader & haxe relative paths

Could we possible to add condition compile property in NMML file?

Posted on October 24, 2011 at 3:05 AM

singmajesty

singmajesty
Total Posts: 2192
Joined: August 25, 2011

Re: NMEPreloader & haxe relative paths

Have you seen the NMML documentation page, here?

http://www.haxenme.org/developers/documentation/nmml-project-files/...

Posted on October 24, 2011 at 12:24 PM