forum > Haxe flash vs NME flash ??

  • I'm new(ish) to Haxe and slightly confused on this api-split: what is the difference between Haxe's flash target and the flash target from NME?

    They both have partial mirror API's, which is extra obvious now I checked-out gm2d, which so primarily opts for Haxe's flash package over NME. (But some mappings are identical. Why not use NME for all targets including flash? Why is this split?

  • nekonme: http://code.google.com/p/nekonme/

    Neko Media Engine. SDL like Bindings for haXe / Neko / cpp
    Create cross platform games and apps for the Neko & c++ platforms 
    Now supports Mac(intel only), Linux, Windows, iPhone, WebOS and Android!
    As you can see, no mention of flash.
    The above project is the same project you can also find in haxelib and which tells a bit more:

    nme: http://lib.haxe.org/p/nme

    1)NME provides an API that is similar to Flash, but available for C++ or Neko. 
    2)Using the NME command-line tools, you can publish a single application for Windows, Mac, Linux, iOS, Android, webOS, Flash and HTML5. 

    'Command-line tools' are now included in NME and they are something like a 'Packager / Assets manager'.
    Since you can already compile the same script to swf, why not use the same assets manager and also have a flash target?
    Flash is a target of the 'Command-line tools' and not of the 'core' NME library.

    The api is split because nme does not (yet) implement the complete flash api.
    For the flash target 'nme-command-line-tools' use the haxe compiler and the flash api that comes with it.

    Jan

  • The best place to get more information on the NME haxelib ( haxe user library NME ) is the http://www.haxenme.org dedicated site, that has a dedicated NME forum. As Jan explains flash is a haXe target, NME is a remap of flash API in the form of a community library and used to hit c++/neko and used on phone and desktop targets. Remapping can allow NME classes to be mapped to flash thus maybe your confusion. Jeash is effectively the same concept as NME but for javascript, the project split durring it's development into a js and c++/neko version and is now in the process of being merged, the Jeash target is very amazing but may not be as clear cut solution when targeting js, as NME is when targeting phones. For c++ target you can also use openframeworkHx, for JS there are quite a few libraries and externs that can be used depending on browser support, and type of js required... ie jeash is more game rich app orientated and less standard simple web page orientated, but suggest test test your approaches and make your own assessments of haxe suitableness for your individual project/application.

  • See this years talk from a flashdevelop ide author on NME.
    http://speakerdeck.com/u/elsassph/p/haxe-nme-vs-the-world

< Prev | Page 1 / 1 | Next >