Prev | Current Page 609 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Those differences can be addressed using conditional compilation,
as done several times in the examples in this book. If you plan to develop for a specific version of
Flash, you don ??™ t have really to worry about conditional compilation.
The Flash API for Flash version 6 to 8 is contained in the flash folder of the standard library, while for
version 9 the folder is flash9 ; note however that the two define just one common package, flash with
different implementations. The compiler picks up the correct one using the desired platform target.
The Flash Movie
A Flash movie is a compiled binary file with extension .swf ; a single movie can contain multimedia
resources (image, video, audio contents, and/or other Flash movies) and code blocks that are interpreted
and executed by the Flash Player.
The Stage and the Timeline
Before introducing the Flash Library API it is important to understand the base mechanism that is
behind a Flash movie. A movie is composed by a stage and a timeline. A stage is the display area where
actors are placed on and where they actually act; actors can be pictures, drawings, or any kind of resource
that has a visual representation.


Pages:
597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621