You are previewing The ActionScript™ 3.0 Migration Guide: Making the Move from ActionScript 2.0.
O'Reilly logo
The ActionScript™ 3.0 Migration Guide: Making the Move from ActionScript 2.0

Book Description

When Flash Player 9 released in June 2006, it introduced the new scripting language, ActionScript 3, which has already taken hold in the Adobe Flex application development community. ActionScript 3 provides not only a significant enhancement in performance, but also a more robust programming model that lends itself to complex Rich Internet Application development. For web designers and developers who need to make the move to ActionScript 3 from the previous version, ActionScript 2, the learning curve has proven to be significant. In this essential and timely guide, ActionScript expert Kris Hadlock speaks squarely to the many thousands of ActionScript 2 users who need to make the leap right away. The ActionScript Migration Guide covers all of the major changes in ActionScript from version 2 to 3. The book explains the most important and fundamental changes in ActionScript drawing comparisons between the two languages both visually and contextually. With a comprehensive index and robust table of contents designers and developers will easily be able to locate the old an/or new codes with side-by-side comparisons of how to program both and the explanation of the concepts behind them.

Table of Contents

  1. Copyright
    1. Dedication
  2. Bio
  3. Acknowledgements
  4. Introduction
    1. Structure
    2. Code Format
  5. 1. The Display Architecture
    1. DisplayObject
    2. The Display Classes
    3. The Display List
  6. 2. The Event Model
    1. Callback Functions
      1. AS2: Callback Functions
      2. AS3: Callback Functions
    2. UIEventDispatcher
      1. AS2: UIEventDispatcher
      2. AS3: UIEventDispatcher
    3. Event Dispatching
      1. AS2: Event Dispatching
      2. AS3: Event Dispatching
  7. 3. Packages and Classes
    1. Packages
      1. AS2: Packages
      2. AS3: Packages
    2. Class Attributes
      1. AS2: Class Attributes
      2. AS3: Class Attributes
    3. Class Assignment
      1. AS2: Class Assignment
      2. AS3: Class Assignment
    4. Import
      1. AS2: Import
      2. AS3: Import
    5. Constructors
      1. AS2: Super
      2. AS3: Super
      3. AS2: Singleton Pattern
      4. AS3: Singleton Pattern
    6. Scope
      1. AS2: Scope
      2. AS3: Scope
  8. 4. Functions, Properties, and Keywords
    1. Arguments
      1. AS2: Arguments
      2. AS3: Arguments
    2. Function Parameters
      1. AS2: Function Parameters
      2. AS3: Function Parameters
    3. Public Attribute Keyword
      1. AS2: Public Attribute Keyword
      2. AS3: Public Attribute Keyword
    4. Private Attribute Keyword
      1. AS2: Private Attribute Keyword
      2. AS3: Private Attribute Keyword
    5. Defining Constants
      1. AS2: Defining Constants
      2. AS3: Defining Constants
  9. 5. Scope
    1. Root
      1. AS2: Root
      2. AS3: Root
    2. Stage
      1. AS2: Stage
      2. AS3: Stage
    3. Parent
      1. AS2: Parent
      2. AS3: Parent
    4. Function and Method Definitions
      1. AS2: Function and Method Definitions
      2. AS3: Function and Method Definitions
  10. 6. Timing
    1. Setting a Time Interval
      1. AS2: Setting a Time Interval
      2. AS3: Setting a Time Interval
    2. Keeping Count
      1. AS2: Keeping Count
      2. AS3: Keeping Count
    3. Delaying Code
      1. AS2: Delaying Code
      2. AS3: Delaying Code
  11. 7. Text
    1. Font Usage
      1. AS2: Font Usage
      2. AS3: Font Usage
    2. TextField
      1. AS2: TextField
      2. AS3: TextField
    3. Text Events
      1. AS2: Text Events
      2. AS3: Text Events
    4. Formatting
      1. AS2: Formatting
      2. AS3: Formatting
  12. 8. Buttons and MovieClips
    1. Mouse Events
      1. AS2: Mouse Events
      2. AS3: Mouse Events
    2. Drag
      1. AS2: Drag
      2. AS3: Drag
    3. Depth
      1. AS2: Depth
      2. AS3: Depth
  13. 9. Loading
    1. Loading External Variables
      1. AS2: Loading External Variables
      2. AS3: Loading External Variables
    2. Triggering a URL
      1. AS2: Triggering a URL
      2. AS3: Triggering a URL
    3. Loading External Assets
      1. AS2: Loading External Assets
      2. AS3: Loading External Assets
    4. Tracking Load Progress
      1. AS2: Tracking Load Progress
      2. AS3: Tracking Load Progress
  14. 10. XML
    1. Loading and Events
      1. AS2: Loading and Events
      2. AS3: Loading and Events
    2. Parsing
      1. AS2: Parsing
      2. AS3: Parsing
  15. 11. Drawing and Color
    1. Lines
      1. AS2: Lines
      2. AS3: Lines
    2. Shapes
      1. AS2: Shapes
      2. AS3: Shapes
    3. Fills
      1. AS2: Fills
      2. AS3: Fills
    4. Color
      1. AS2: Color
      2. AS3: Color
  16. 12. Animation
    1. Tweening
      1. AS2: Tweening
      2. AS3: Tweening
    2. Events
      1. AS2: Events
      2. AS3: Events
  17. 13. Sound
    1. Loading
      1. AS2: Loading
      2. AS3: Loading
    2. Events
      1. AS2: Events
      2. AS3: Events
    3. Volume
      1. AS2: Volume
      2. AS3: Volume
    4. ID3 Tags
      1. AS2: ID3 Tags
      2. AS3: ID3 Tags
  18. 14. More Reasons to Make the Switch
    1. Event Bubbling
    2. Label Statements
    3. Namespace Definition Keyword
    4. Motion XML and the Animator