CARVIEW |
The ActionScript 3.0 Quick Reference Guide: For Developers and Designers Using Flash
For Developers and Designers Using Flash CS4 Professional
- By
- David Stiller, Rich Shupe, Jen deHaan, Darren Richardson
- Publisher:
- O'Reilly Media / Adobe Dev Library
- Released:
- October 2008
- Pages:
- 496
If you're ready to give your Flash projects a considerable performance boost, learning ActionScript 3.0 is a must. This Quick Answer Guide is designed specifically to help Flash designers and developers make the leap from ActionScript 2.0 to the new object-oriented ActionScript 3.0 quickly and painlessly. You'll learn key differences between the two language versions, allowing you to more easily leverage ActionScript 3.0 using Flash CS4 and other Adobe technologies like Flex and AIR.
"No matter what your background, the pages that follow will provide you with some excellent knowledge, insight, and even a little bit of wisdom in the realm of Flash and ActionScript. Happy learning!"
-- Branden Hall, from the Foreword
Written by Flash insiders with extensive knowledge of the technology, this guide is designed specifically to help Flash designers and developers make the leap from ActionScript 2.0 to the new object-oriented ActionScript 3.0 quickly and painlessly. Formatted so you can find any topic easily, ActionScript 3.0 Quick Reference Guide explains:
- Object-oriented programming (OOP) concepts, such as packages and classes
- ActionScript 3.0 features and player enhancements that improve performance
- Workflow differences between ActionScript 2.0 and ActionScript 3.0 including tools, code editing, component sets, and image and font rendering
- Where did it go? A guide to help you find familiar features in ActionScript 3.0, such as global functions, operators, properties, and statements
- How do I? Step-by-step solutions for performing tasks with ActionScript 3.0, including input, sound, video, display, events, text, and more
Also included are overviews of Flash and ActionScript features and workflows. ActionScript 3.0 is a huge upgrade to Flash's programming language -- and this guide helps you upgrade your skills to match it.
-
ActionScript 3.0 Introduced
-
Chapter 1 Introducing ActionScript 3.0
- Examining ActionScript 3.0, the Language
- Exploring Flash Player API Updates
- Understanding Players and Support
- Learning ActionScript 3.0 on the Heels of 2.0
- Deciding to Migrate or Write Code from Scratch
-
Chapter 2 Discovering What You Need to Work with ActionScript 3.0
- Flash CS4 Professional/Flex Builder 3
- Flash Player 9 or Higher
- Using Other Code Editors with Flash
-
Chapter 3 Looking at the Changes in ActionScript 3.0
- Major Changes and Obsolete Code
- Major Syntax and Structure Changes
- Additional ActionScript 3.0 Resources
-
Chapter 4 Exploring the Benefits of Using ActionScript 3.0
- Performance
- Efficiency
- Consistency
- Standards and Portability Among Other Technologies
-
-
ActionScript and the Flash CS4 Authoring Tool
-
Chapter 5 Creating and Working with Code
- Thinking in Terms of the Timeline
- New Features in the Actions Panel and Script Windows
- Setting ActionScript Preferences
- Associating FLA Files with AS Files
- Using Script Assist
-
Chapter 6 Creating a Document Class
-
Chapter 7 Working with Library and Linkage Changes
- Linkages Now Reference Classes
-
Chapter 8 Copying Motion as ActionScript 3.0
- Copying Motion
- Applying Motion to Other Objects
-
Chapter 9 Using ActionScript 3.0 Components
- Overview of the Component Set
- New and Removed Components
- Changes in Writing Code for Components
- Changing the Appearance of Components
-
Chapter 10 Making Up for a Reduced Component Set
- Working Without Data Components in ActionScript 3.0
- ActionScript 2.0 Components in ActionScript 3.0 SWF Files
- Exploring Third-Party UI Components
-
Chapter 11 Debugging and Troubleshooting
- Debugging Is a Good Thing
- Testing Your ActionScript 3.0 Code
- Reviewing Improvements in Debugging Over ActionScript 2.0
- Exploring the Compiler Errors Panel
- Using the Enhanced Debugging Workspace
-
-
How Do I?
-
Chapter 12 How Do I Draw with Code?
- 12.0 Introduction
- 12.1 Creating a Display Object Dynamically
- 12.2 Referencing an Object’s Graphics Property
- 12.3 Defining a Line Style
- 12.4 Drawing a Line
- 12.5 Drawing a Curve
- 12.6 Defining a Fill Style
- 12.7 Drawing a Rectangle
- 12.8 Drawing a Rectangle with Rounded Corners
- 12.9 Drawing a Circle
- 12.10 Creating a Gradient Fill
- 12.11 Using a Drawn Shape as a Dynamic Mask
- 12.12 Caching Vector as Bitmap
- 12.13 Applying a Simple Bitmap Filter
-
Chapter 13 How Do I Work with the Display List?
- 13.0 Introduction
- 13.1 Choosing Which Type of Display Object to Use
- 13.2 Creating a New Display Object
- 13.3 Adding a Display Object to the Display List
- 13.4 Specifying the Depth of a Display Object
- 13.5 Finding a Display Object
- 13.6 Removing a Display Object from the Display List
- 13.7 Working with Children of a Display Object Container
- 13.8 Working with Parents of a Display Object
- 13.9 Casting a Display Object from One Type to Another
- 13.10 Changing the Parent of a Display Object
- 13.11 Referencing the Stage Through a Display Object
-
Chapter 14 How Do I Work with Events?
- 14.0 Introduction
- 14.1 Understanding Event Listeners
- 14.2 Capturing Mouse Events
- 14.3 Understanding Event Flow
- 14.4 Using Event Bubbling
- 14.5 Using the target and currentTarget Event Properties
- 14.6 Simulating a Mouse Up Outside Event
- 14.7 Capturing Frame Events
- 14.8 Improving Performance by Removing Event Listeners
- 14.9 Capturing Keyboard Events
- 14.10 Capturing Stage Events
- 14.11 Using a Timer to Dispatch Events
- 14.12 Dispatching Your Own Events
- 14.13 Manually Calling Event Listener Functions
- 14.14 Capturing an Event Before It Reaches Its Target
- 14.15 Setting the Execution Order of Events
- 14.16 Using Weak Listeners
-
Chapter 15 How Do I Work with Text?
- 15.0 Introduction
- 15.1 Creating a Text Field
- 15.2 Styling a Text Field
- 15.3 Creating a Password Field
- 15.4 Focusing a Text Field
- 15.5 Populating a Text Field
- 15.6 Automatically Sizing a Text Field
- 15.7 Scrolling a Text Field
- 15.8 Using Embedded Fonts
- 15.9 Formatting Text Using TextFormat
- 15.10 Formatting Text Using HTML
- 15.11 Formatting Text Using CSS
- 15.12 Adding Hyperlinks to Text
- 15.13 Triggering ActionScript from HTML Links
- 15.14 Selecting Text
-
Chapter 16 How Do I Work with XML?
- 16.0 Introduction
- 16.1 Creating an XML Object
- 16.2 Loading XML
- 16.3 Reading an Element Node
- 16.4 Reading a Text Node
- 16.5 Working with Multiple Nodes of the Same Name
- 16.6 Reading an Attribute
- 16.7 Finding Content Using Shorthand
- 16.8 Finding Content Using Conditionals
- 16.9 Reading HTML or Entities in XML Nodes
- 16.10 Deleting XML
- 16.11 Writing XML
- 16.12 Writing XML with Variables
- 16.13 Sending and Loading XML
-
Chapter 17 How Do I Work with External Assets?
- 17.0 Introduction
- 17.1 Loading and Applying a Cascading Style Sheet
- 17.2 Loading and Displaying an Image or SWF File
- 17.3 Communicating with an ActionScript 3.0 Loaded SWF
- 17.4 Communicating with an ActionScript 2.0 Loaded SWF
- 17.5 Unloading an Image or SWF File
- 17.6 Loading and Playing a Sound
- 17.7 Setting the Volume and Pan of a Sound
- 17.8 Visualizing the Amplitude of a Sound
- 17.9 Unloading a Sound
- 17.10 Loading and Playing a Video
- 17.11 Unloading a Video
-
-
Migration
-
Chapter 18 A Sample Migration
- A Simple Particle System
- ActionScript 2.0
- ActionScript 3.0
- Migration Sample Summary
-
Chapter 19 Where Did It Go?
- Introduction
- Code Comparisons
-
-
Colophon

- Title:
- The ActionScript 3.0 Quick Reference Guide: For Developers and Designers Using Flash
- By:
- David Stiller, Rich Shupe, Jen deHaan, Darren Richardson
- Publisher:
- O'Reilly Media / Adobe Dev Library
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- October 2008
- Ebook Release:
- February 2009
- Pages:
- 496
- Print ISBN:
- 978-0-596-51735-9
- | ISBN 10:
- 0-596-51735-1
- Ebook ISBN:
- 978-0-596-15657-2
- | ISBN 10:
- 0-596-15657-X
-
David Stiller
David Stiller is a resident author at CommunityMX.com (over 50 articles), co-author of Foundation Flash CS3 for Designers (friends of ED) and contributor to How to Cheat in Adobe Flash CS3 (Focal Press). He blogs regularly at quip.net/blog/ and is a longtime regular on the Adobe Flash and ActionScript support forums.
-
Rich Shupe
Rich Shupe is the co-author of Learning ActionScript 3.0 (O'Reilly) and has been teaching ActionScript programming to students of all levels since the language became available. He founded his own training and development company, FMA, in 1995 and is a faculty member of New York's School of Visual Arts' Computer Art Dept. He writes about ActionScript at https://www.LearningActionScript3.com.
-
Jen deHaan
Jen deHaan is a software quality engineer on the Flash authoring team at Adobe Systems, Inc. She is an author and co-author of 17 books (and tech editor for several others) over the past five versions of Flash. Jen's latest blog is at www.flashthusiast.com.
-
Darren Richardson
Darren Richardson is a technical editor for O'Reilly Media. He gained high visibility among Flash and ActionScript developers by writing over 50 articles for Web Designer Magazine and community-related sites. He can be found on a nearly daily basis blogging at www.playfool.com/blog/
The reptiles on the cover are ophiops.
The cover image is from the Dover Pictorial Archive. The cover font is Adobe
ITC Garamond. The text font is Linotype Burka; the heading font is Adobe
Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed.
![]() ©2010, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly
Academic Solutions Authors Contacts Customer Service Jobs Newsletters O'Reilly Labs Press Room Privacy Policy RSS Feeds Terms of Service User Groups Writing for O'Reilly |
Content Archive Business Technology Computer Technology Microsoft Mobile Network Operating System Digital Photography Programming Software Web Web Design |
More O'Reilly Sites
O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone makezine.com craftzine.com hackszine.com perl.com xml.com Partner Sites InsideRIA java.net O'Reilly Insights on Forbes.com |