"static function main()" seems to work as an entrance point, though, which makes sense somehow...
I think Appcelerator is more adapted to applications that want to use native UIs elements (menus, buttons, layouts, etc).
Then you can still write an Appcelerator app using Haxe :) https://github.com/skial/haXe-titanium-desktop
I don't know how/if it's possible to mix both, for example embed a NME app inside an Appcelerator app (besides using UI.WebView and embed it as HTML...)
- Haxe/Flash supports embedding .swf libraries : http://haxe.org/manual/swc
- NME/C++ (Android, iOS, ...) has partial support for .swf libraries : http://www.joshuagranick.com/blog/2012/02/08/quick-notes-on-...
- NME/HTML5 doesn't seem to support .swf right now, but I think it's being worked out.
Then you have third party tools such as Flump or Flambe to help you: https://github.com/threerings/flump https://github.com/aduros/flambe