The ActionScript 3.0 Bible, 2nd Edition


Grab the source of any and all the examples in the book here! Note that some examples here consolidate a series of short snippets. See the help page if you aren't sure what to do with the code.


All the example code in the book, in one place. Run this code on your own computer with Flash Builder, Flash Professional, the Flex SDK, or the IDE of your choice.

Download .ZIP Download .TAR.GZ

Support Files

Please note that many examples extend the com.actionscriptbible.Example class in order to direct trace() output to the stage. If you are running this code yourself and can see trace() output in your console, you can freely replace Example with Sprite. Alternatively, you can download the missing com.actionscriptbible.Example class here. Make sure to place it in a com/actionscriptbible/ subdirectory of your source folder.

Download .AS

Live Examples

The best way to play with example code is through our partner Wonderfl. Using Wonderfl, you can run, download, and even edit the code with one click, in your browser, with no software or setup required. Simply enter in the URL in the book, such as

Roger's Favorites

These are some of my favorite examples from the book. Check 'em out!

Chapter 37 Example 5 Chapter 38 Example 2 Chapter 37 Example 13 Chapter 40 Example 6 Chapter 35 Example 12 Chapter 35 Example 7 Chapter 23 Example 2 Chapter 15 Example 4 Chapter 38 Example 3 Chapter 36 Example 3