Prev | Current Page 71 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

The primary class accessed when the program is first run will
not yet be instantiated, which is why the main function that serves as the application entry point is
tagged as static.
You learn more about using classes later in the book.
Compiler Switches
Compiler switches are important for setting the environment of your applications that aren ??™ t possible
within your application code. Normally, you will only specify the output filename for your application
and the name of the class containing the static method main used to initialize the rest of your
application. However, in the case of Flash movies, you can also specify the dimensions, target player
version, and any external SWF files you want to embed in your output movie.
24
Part I: The Core Language
Switch Parameters Description
Flash
-swf Specifies the filename of the output file.
-swf-lib Specifies the location and filename of the
existing swf file to embed.
-swf-header :::

Sets the dimensions, speed, and background
color of the Flash file.


Pages:
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83