
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Preface
|
xxi
Appendix C or online technotes. We made this choice to keep the book streamlined,
although it is still considerably beefier than the first edition. By the time you read
this, Flash Player 6 will be nearly ubiquitous, so it doesn’t make sense to cover Flash
4 in detail anymore. We cover enough of it to help you understand and upgrade any
legacy code you may own or encounter. We’ve also paid close attention to changes
between Flash 5 and Flash 6 to help you understand the new paradigms and upgrade
legacy code. The legacy code examples from the first edition will all remain available
at http://www.moock.org/asdg/codedepot.
Updated Code Examples
All code examples from the first edition have been rewritten to use Flash MX syntax
and best practices. For example:
• The quiz samples now use callback functions—rather than Flash 5–style on( )
handlers—for button event handlers.
• Text fields that were formerly drawn in the authoring tool are now generated
programmatically with createTextField( ).
• Classes are defined on
_global (the new property that holds global variables)
• The object-oriented LoadVars class is used instead of the older loadVariables( )
global function.
Likewise, dozens of new Flash MX-specific examples have been added. Here are just
a few of the interesting ones:
•