Prev | Current Page 62 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

hxml file is to change the original -swf switch to a
-neko switch and to change the extension of your resulting file from .swf to .n .
If you compile this now in the same way as the previous example, the haXe compiler should create a file
called helloworld.n in your application source directory. If not, then make sure that no other switches
exist in the .hxml file other than the two lines listed previously. Many of the switches you would use to
compile to one format will not be supported by another format, so you must be sure that you supply the
correct data for a successful compile.
20
Part I: The Core Language
Running the Neko Example
Neko is a very flexible platform, and as such, there are several ways to run a Neko application. The first
way to run the example would be to enter the neko command, followed by the path to the file to be
executed. At the command line, navigate to the working directory and enter:
> neko helloworld.n
If the file executes successfully, then the command window should display the same string as the Flash
example.


Pages:
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74