moock.org  back to
essential actionscript 3.0  

 

essential actionscript 3.0 examples

Following are the major examples in the book Essential ActionScript 3.0, by Colin Moock. Note that example and page numbers listed below are based on the book's first printing, and may not match later printings. Examples marked "(bonus)" are offered as additional study material, and are not found in the book.

To use any example project in Flex Builder:
  1. Select File > Import > Existing projects into workspace.
  2. Select the root directory for the project you wish to import.
To use an example project in Flash CS3:
  1. Make a new .fla file in the example's /src/ folder.
  2. Open the .fla file in Flash CS3.
  3. In the Properties panel, for Document class, specify the name of the example's main class, without any file extension (e.g., VirtualZoo, not VirtualZoo.as).
  4. Compile the example via either File > Publish, or Control > Test Movie.
Note that projects that load external files (.swf, .gif, .xml) are compiled for network use and will cause a security error when tested locally outside of a trusted folder. Importing a project into Flex Builder 2 automatically grants trust to that project's main directory. To grant trust to a folder without importing it into Flex Builder, follow these steps:
  1. Open the online Flash Player Settings Manager by browsing to the following web page: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
  2. Under Global Security Settings>Always trust files in these locations, click Edit locations>Add location....
  3. Enter or browse to the location you wish to trust.
For more information on Flash Player security limitations, see Chapter 19 of Essential ActionScript 3.0.

Download All Examples Virtual Zoo Program Chapter 9 Chapter 12 Chapter 14 Chapter 17 Chapter 18 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26 Chapter 27 Chapter 28 Chapter 29 Chapter 30 Chapter 31 ActionScript 3.0 Versions of Essential ActionScript 2.0 Examples