Questions tagged [nme]

NME is a free, open-source framework that enables development for iOS, Android, webOS, BlackBerry, Windows, Mac, Linux and Flash Player from a single codebase.

From http://www.haxenme.org/documentation/about/:

NME is a free, open-source framework that enables development for iOS, Android, webOS, BlackBerry, Windows, Mac, Linux and Flash Player and HTML5 Canvas from a single codebase. Unlike most cross-platform frameworks, NME applications are not written in a low-level language (like C or C++) and does not require a virtual machine or runtime (like Java and Adobe AIR) in order to run on a target platform.

NME projects are written in Haxe, which is a crossplatform, strictly-typed language which itself can be compiled into JavaScript, Flash, NekoVM, PHP, C++ and C#.

67 questions
38
votes
2 answers

Running Haxe from iOS app – hxRunLibrary() error

For a client I've developed an iOS + Android app using Cordova (PhoneGap) for the user interface. Now, as an update to this app, I'm am attempting to add a game that was written in Haxe. Originally the game was written for the Flash target, but I've…
Splashdust
  • 767
  • 4
  • 8
9
votes
1 answer

NME Change the window title in C++ and Neko targets

I'm using NME to create a small game. I like to display the objective in the title bar in the Neko and C++ targets. Is that possible? Thanks.
Sri Harsha Chilakapati
  • 10,962
  • 6
  • 46
  • 87
8
votes
8 answers

'cp' is not recognized as an internal or external command

I tried to run a project using custom build in FlashDevelop: $(CompilerPath)\haxe.exe $(ProjectDir)\compile-js.hxml , but I get this error: 'cp' is not recognized as an internal or external command, here is the compile-js.hxml file, is there any…
simo
  • 20,548
  • 31
  • 101
  • 188
7
votes
1 answer

How to exit Haxe/OpenFL program?

I am making a game using Haxe, OpenFL (Formerly NME) and HaxeFlixel. However, problem is, I can't seem to find a good way to make a Flixel button that will shutdown the game when pressed. I was planning to make a "quit" button on the main menu. Is…
Mandemon
  • 274
  • 2
  • 18
6
votes
2 answers

Haxe - sending enum as flags to a function

I'm just trying to convert my code from C# to Haxe NME. I use enums as flags. [Flags] enum State { StateOne = 1, StateTwo = 2, StateThree = 4 } And use it if (someObj.HasState(State.StateOne | State.StateTwo)) { // Contains…
Sri Harsha Chilakapati
  • 10,962
  • 6
  • 46
  • 87
6
votes
1 answer

Unable to compile NME for Android

Okay, so I'm trying to get an initial build of the NME sample files onto an Android device. I can build for platforms such as HTML5, Flash and Windows, but I can't get it onto Android - I always get errors back that say: Unable to find a javac…
James Ford
  • 1,483
  • 2
  • 14
  • 31
5
votes
0 answers

Haxe/NME game failing on iOS devices after AIR version updated

So, I inherited a game project with the following setup: A core SWF of the game itself, written in Haxe (3.0)/NME (4.0.2), utilizing the Starling framework, compiled to a Flash target using FlashDevelop An AS3 wrapper which deals with assorted…
shiser
  • 252
  • 1
  • 3
  • 13
4
votes
3 answers

Haxe NME UI: Best practices for MVC application design

yesterday I stumbled across the Haxe NME project, which is a very promising idea. However, it is still not possible to build sophisticated UIs with this framework. In my opinion it seems to be a intimidating task to build a UI framework that targets…
user1812379
  • 747
  • 3
  • 10
  • 19
3
votes
2 answers

Is there any onClose event in OpenFL?

I am using a library which needs to be cleaned up at exit time (i.e. closing a socket so that it does not hang until some timeout) in an OpenFL 2.2.1 application. However, I could not find any event which is called when I close the window with…
madprog
  • 275
  • 1
  • 4
  • 13
3
votes
1 answer

Is it possible to mix OpenFL with NME?

OpenFL is great, but the latest version of NME supports StageVideo. So is it possible to build a project with OpenFL and include some NME libraries to be able use StageVideo?
Pier
  • 8,313
  • 12
  • 54
  • 97
3
votes
1 answer

How to integrate InApp purchase & native SDK for iOS with Haxe

I'm trying to integrate InApp purchase & a native SDK provided by our publisher into a game made with Haxe & NME. I'm still using NME 3.5.5 & hxcpp 2.10. I tried to use Native Extension as described here :…
3
votes
1 answer

How to write into XML file in Haxe?

I am using Haxe and OpenFL and I got a program that generates a Xml file. However, I can't figure out how to save that file. I can create Xml tree and check it's valid, but for my life I can't figure out how to write the file. So, in simple, how to…
Mandemon
  • 274
  • 2
  • 18
3
votes
3 answers

How can I get the error line debugging Haxe for windows?

I'm building a game using Haxe w/ HaxeFlixel in FlashDevelop, currently targeting windows platform. While I get error messages in the console, I would like to know if I can get the error line too ( like flash does ). I'm only getting something like…
3
votes
2 answers

How do I load an XML file and parse it using Haxe

I am trying to create a desktop application that will load the itunes play list xml file and parse it using Haxe and the framework haxenme. I think the issue that I am having may be the spaces in the file name not being escaped correctly but I'm not…
mattwallace
  • 3,687
  • 4
  • 35
  • 69
3
votes
1 answer

Is it possible to build an opengl game with haxe nme in ios and android?

i understand haxe nme can use opengl in the backend to display the 2D sprites of the games, but is it possible to manipulate opengl directly from nme to build a cross platform ios and android pure 3D opengl game?
JayDee
  • 899
  • 1
  • 11
  • 19
1
2 3 4 5