swf . If not, an error stack is displayed in the command window,
which lists all possible errors found by the compiler. Often, fixing the first error in the list is enough to
justify all the remaining errors in the stack and allow for a successful second attempt. You should always
work through the error stack from the top down. Each time you fix an error in your code, recompiling
the script may drastically reduce the list of errors being displayed.
Upon successfully compiling your script, you should be able to run the SWF file with a Flash player. If
you don ??™ t have one installed, try running the file with your favorite web browser as the browser ??™ s Flash
plug - in can often run an SWF file without the need to create an HTML container. The Flash plug - in can
be acquired from the Adobe website at www.adobe.com .
When you finally display the Flash movie, it should present the text:
HelloWorld.hx:5: Hello World!
Congratulations! You have just compiled and run your first haXe application.
How Your Program Was Compiled
So, what have you done here? In the case of the previous example, the compiler read the information
provided by the .
Pages:
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70