First, go to http://www.haxenme.org/download and install NME.
Since Cordova support is a beta feature, we will continue to improve NME's support of Cordova over time. If you want, you can get the latest development build here:
import cpp.vm.Deque; | |
import cpp.vm.Thread; | |
import cpp.Sys; | |
import nme.display.Sprite; | |
import nme.Lib; | |
class ThreadingExample extends Sprite { | |
import cpp.vm.Thread; | |
import nme.display.Sprite; | |
import nme.Lib; | |
class ThreadingExample extends Sprite { | |
public function new () { | |
import cpp.vm.Thread; | |
import nme.display.Sprite; | |
import nme.Lib; | |
class ThreadingExample extends Sprite { | |
public function new () { | |
class TestJS { | |
static function main () { | |
trace ("Hello World"); | |
} | |
} |
First, go to http://www.haxenme.org/download and install NME.
Since Cordova support is a beta feature, we will continue to improve NME's support of Cordova over time. If you want, you can get the latest development build here:
package box2d.common.math; | |
#if cpp | |
import cpp.Lib; | |
#elseif neko | |
import neko.Lib; | |
#end | |
class MyCoolClass { | |
var message:String; | |
var total:Float; | |
public function new () { | |
var hello = combineText ("H", "ello"); | |
var world = combineText ("W", "orld"); | |
#if flash | |
import flash.utils.TypedDictionary; | |
#end | |
private class ObjectHash <T> { | |
#if flash | |
package com.eclecticdesignstudio.piratepig; | |
import nme.Assets; | |
import nme.display.Bitmap; | |
import nme.display.BitmapData; | |
import nme.display.Sprite; | |
import nme.display.StageAlign; | |
import nme.display.StageScaleMode; | |
import nme.events.Event; |