Prev | Current Page 56 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


At the time of writing this book, plug - ins for numerous IDE ??™ s exist that should make development
easier, but for the purposes of having a complete outline of creating and compiling an application, stick
with a plain text editor.
Once your editor is open, enter the previous code and save the file as HelloWorld.hx in a new
directory. Make sure you enter the code exactly as it is listed previously. haXe is case sensitive, so
function and Function would be read differently by the compiler.
Compiling Your First haXe Application
Compiling an application with haXe is similar to compiling an application with Java and many other
command - line compilers. You simply enter the compiler command followed by the required arguments
at the command line. The issue with this procedure, however, is that many applications you want to
compile will require a large number of arguments that are too long to reasonably enter at the command
line. For this reason, haXe provides a batch file style compilation whereby all of the required arguments
are entered into a text file with the extension .


Pages:
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68