Prev | Current Page 298 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


To compile the above class targeting all the flash versions at once, an hxml file is created. The file must
reside in the same directory as Drawer.hx .
# content of the file build-drawer.hxml
# Flash6
-swf f6.swf
-swf-version 6
Drawer
--next
# Flash7
-swf f7.swf
-swf-version 7
Drawer
--next
# Flash8
-swf f8.swf
-swf-version 8
Drawer
--next
# Flash9
-swf f9.swf
-swf-version 9
Drawer
The file can be processed using the following command from the command line:
> haxe build-drawer.hxml
This is equivalent to double - clicking on the file if the .hxml extension is properly associated to the haXe
program in the operating system. In any case, the compiler will produce four swf files, one for each flash
version.
A flash movie that loads another movie with a different version can generate unexpected results (more
often it simply doesn ??™ t work). As a general rule of thumb, a movie can load movies of the same versions;
prior versions can be used but only to access their assets (images, sounds, and so on).


Pages:
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310