Feel free to use the source code however you want. To build, install nme, spritesheet and nape from haxelib:
$ haxelib install nme
$ haxelib install nape
$ haxelib install spritesheet

then cd to ShipDemo directory and build with:
$ haxelib run nme build ./application.nmml flash