From Air to NME

Hi, I used to write tools with AS3/Air, but the Adobe's announcement about Linux put me off a bit. (Some of my app's users are working on Linux and I can't "leave them behind" ^^) I then started looking for alternatives, and I heard about NME wich l…

Viewing 1 to 3 (3 Total)
From Air to NME

kipy

kipy
Total Posts: 2
Joined: December 04, 2011

Hi,

I used to write tools with AS3/Air, but the Adobe's announcement about Linux put me off a bit. (Some of my app's users are working on Linux and I can't "leave them behind" ^^)

I then started looking for alternatives, and I heard about NME wich look really great smiling

I'm going to make a new version of a big project (from scratch), and I have to be sure of the technology I'm going to use.

So, I've some newbie questions to back up my choice :

- I made a windows-target test (using neko or cpp). this works. But the exe opens a dos window before displaying my main program. How to get rid of it ?
- I see there's files I/O classes in the API. Great smiling but is there a "open file(s)/directory/save file(s) Dialogs" one ? Didn't see that.
- Can I make new windows ? (not really important to me, just wanna know)
- Is there sql lite support ?

Thanks in advance smiling (and sorry for the misspellings, I'm french speaking.)

Tags:
Posted on December 05, 2011 at 9:19 AM

singmajesty

singmajesty
Total Posts: 2147
Joined: August 25, 2011

Re: From Air to NME

Hi kipy!

You can hide the console window (which otherwise displays trace messages) by adding this to your NMML project file:

<setenv name="no_console" value="1" />

Unfortunately, I do not think there is a file open/save dialog support right now, but I would like to see it in the future. Since you have full access to read and write from the application, this could be provided using your own UI in your application, but using native dialogs would be better long-term.

Currently you cannot make multiple windows, but this goes back to improving windowing options for desktop platforms (it isn't really a concern for mobile targets). There has been work to use NME with "waxe", which provides a way to use wxWidgets with NME for native UI elements. I'm not sure how that would work with support for multiple windows, but I would definitely expect dialogs to be a part of that.

Yes, I actually published an extension lately for SQLite support. It uses the Neko API for database access, so it is a little different than AIR, but has worked great (and fast) in my testing. It doesn't support handling multiple transactions at once, but firing multiple commands has still been MUCH faster than my experiences with database access with web APIs.

The SQLite add-on is using a newer NME extension format than is found in RC3. It will work off SVN, or when the next update for NME is released

Posted on December 05, 2011 at 1:02 PM

kipy

kipy
Total Posts: 2
Joined: December 04, 2011

Re: From Air to NME

Thanks for your reply !

The console hiding works fine using cpp output but not with neko, and I just found a neko extension called "systools" to handle the Dialogs stuffs ^^

http://code.google.com/p/neko-systools...

Interesting. smiling Can't wait for the next release(s) then.

Posted on December 05, 2011 at 2:14 PM