Reputation: 1042
I'm getting into Haxe. I do really love the agnostic core language,
but as soon as i run into a "complex" piece of software I need to use the designed language lib (flash.Lib
, or js.Lib
, etc).
Plus I always need lots of external libraries (tweening, image processing, etc, etc) that are all language specific.
Any hints on how I should approach the problem? Is there a "safe" agnostic libraries list?
How would you develop an application that should run on the Flash Player, but also on a JavaScript VM?
Upvotes: 0
Views: 137
Reputation: 56432
What you mostly need is NME.
HaxeNME is the best way to do some cross-platform graphic application.
You can also take a look at Jeash, thus it is included on NME.
You can also use conditionnal compilation
Also, a lot of Haxelib Libraries are tagged with "Cross", which means that they should be cross platforms.
Regards,
Upvotes: 4
Reputation: 17629
If I were developing for both Flash and Javascript I would probably use a MVC library and build two distinct views, one for each language.
With PureMVC you could use the same model as well as view mediators regardless of which platform you were using. The only extra work would be that you would need to wrap all of your view components so that the javascript view acts very much like the flash view.
https://github.com/PureMVC/puremvc-haxe-standard-framework/wiki
Upvotes: 1