Prev | Current Page 305 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

The Drawer definition is not globally accessible and must be retrieved from the loaded file
context using the getDefinition() method; the rest of the code is very similar to the previous
examples.
Before running any of the preceding examples, remember to copy the previously compiled fversion.
swf to the output directory otherwise the movie will not be able to find and load the library.
Note that the current implementation of haXe only allows the use of one - swf - lib switch at the time;
you cannot actually embed more than one swf file.
Neko External Libraries
Neko applications can import two kinds of libraries: Neko bytecode files ( .n) or libraries written in C
and compiled into .ndll files to target the Neko VM (Neko Virtual Machine).
Neko Bytecode .n
Neko bytecode is generated using the Neko run time. The code written in haXe is effectively converted
into a file written in the Neko programming language (conventionally associated to the extension
.neko ), and then compiled by neko.exe in an .n file.


Pages:
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317