Please consider the latest edition.
-
ActionScript Fundamentals
-
Chapter 1 A Gentle Introduction for Non-Programmers
- Some Basic Phrases
- Further ActionScript Concepts
- Building a Multiple-Choice Quiz
- Onward!
-
Chapter 2 Variables
- Creating Variables (Declaration)
- Assigning Variables
- Changing and Retrieving Variable Values
- Types of Values
- Variable Scope
- Some Applied Examples
- Onward!
-
Chapter 3 Data and Datatypes
- Data Versus Information
- Retaining Meaning with Datatypes
- Creating and Categorizing Data
- Datatype Conversion
- Primitive Data Versus Composite Data
- Onward!
-
Chapter 4 Primitive Datatypes
- The Number Type
- Integers and Floating-Point Numbers
- Numeric Literals
- Working with Numbers
- The String Type
- Working with Strings
- The Boolean Type
- Undefined
- Null
- Onward!
-
Chapter 5 Operators
- General Features of Operators
- The Assignment Operator
- Arithmetic Operators
- The Equality and Inequality Operators
- The Comparison Operators
- The String Operators
- The Logical Operators
- The Grouping Operator
- The Comma Operator
- The void Operator
- Other Operators
- Onward!
-
Chapter 6 Statements
- Types of Statements
- Statement Syntax
- The ActionScript Statements
- Statements Versus Actions
- Onward!
-
Chapter 7 Conditionals
- The if Statement
- The else Statement
- The else if Statement
- Simulating the switch Statement
- Compact Conditional Syntax
- Onward!
-
Chapter 8 Loop Statements
- The while Loop
- Loop Terminology
- The do-while Loop
- The for Loop
- The for-in Loop
- Stopping a Loop Prematurely
- Timeline and Clip Event Loops
- Onward!
-
Chapter 9 Functions
- Creating Functions
- Running Functions
- Passing Information to Functions
- Exiting and Returning Valuesfrom Functions
- Function Literals
- Function Availability and Life Span
- Function Scope
- Function Parameters Revisited
- Recursive Functions
- Internal Functions
- Functions as Objects
- Centralizing Code
- The Multiple-Choice Quiz Revisited
- Onward!
-
Chapter 10 Events and Event Handlers
- Synchronous Code Execution
- Event-Based AsynchronousCode Execution
- Types of Events
- Event Handlers
- Event Handler Syntax
- Creating Event Handlers
- Event Handler Scope
- Button Events
- Movie Clip Events Overview
- Movie-Playback Movie Clip Events
- The User-Input Movie Clip Events
- Order of Execution
- Copying Clip Event Handlers
- Refreshing the Screen with updateAfterEvent
- Code Reusability
- Dynamic Movie Clip Event Handlers
- Event Handlers Applied
- Onward!
-
Chapter 11 Arrays
- What Is an Array?
- The Anatomy of an Array
- Creating Arrays
- Referencing Array Elements
- Determining the Size of an Array
- Named Array Elements
- Adding Elements to an Array
- Removing Elements from an Array
- General Array-Manipulation Tools
- Multidimensional Arrays
- The Multiple-Choice Quiz, Take 3
- Onward!
-
Chapter 12 Objects and Classes
- The Anatomy of an Object
- Instantiating Objects
- Object Properties
- Methods
- Classes and Object-Oriented Programming
- Built-in ActionScript Classes and Objects
- Onward!
-
Chapter 13 Movie Clips
- The "Objectness" of Movie Clips
- Types of Movie Clips
- Creating Movie Clips
- Movie and Instance Stacking Order
- Referring to Instances and Main Movies
- Removing Clip Instances and Main Movies
- Built-in Movie Clip Properties
- Movie Clip Methods
- Applied Movie Clip Examples
- The Last Quiz
- Onward!
-
Chapter 14 Lexical Structure
- Whitespace
- Statement Terminators (Semicolons)
- Comments
- Reserved Words
- Identifiers
- Case Sensitivity
- Onward!
-
Chapter 15 Advanced Topics
- Copying, Comparing, and Passing Data
- Bitwise Programming
- Advanced Function Scope Issues
- The movieclip Datatype
- Onward!
-
-
Applied ActionScript
-
Chapter 16 ActionScript Authoring Environment
- The Actions Panel
- Adding Scripts to Frames
- Adding Scripts to Buttons
- Adding Scripts to Movie Clips
- Where's All the Code?
- Productivity
- Externalizing ActionScript Code
- Packaging Components as Smart Clips
- Onward!
-
Chapter 17 Flash Forms
- The Flash Form Data Cycle
- Creating a Flash Fill-in Form
- Onward!
-
Chapter 18 On-Screen Text Fields
- Dynamic Text Fields
- User-Input Text Fields
- Text Field Options
- Text Field Properties
- HTML Support
- Working with Text Field Selections
- Empty Text Fields and the for-in Statement
- Onward!
-
Chapter 19 Debugging
- Debugging Tools
- Debugging Methodology
- Onward!
-
-
Language Reference
-
Chapter 20 ActionScript Language Reference
- Global Functions
- Global Properties
- Built-in Classes and Objects
- Entry Headings
- Alphabetical Language Reference
-
-
Appendixes
-
Appendix A Resources
- ActionScript and Programming
- ECMA-262 Resources
- Object-Oriented Programming
- SWF File Format
-
Appendix B Latin 1 Character Repertoire and Keycodes
-
Appendix C Backward Compatibility
- Updates to the Flash 5 Player, Build 41
- Controlling Movie Clips
-
Appendix D Differences from ECMA-262 and JavaScript
-
-
Colophon
- Title:
- ActionScript: The Definitive Guide
- By:
- Colin Moock
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- May 2001
- Pages:
- 720
- Print ISBN:
- 978-1-56592-852-7
- | ISBN 10:
- 1-56592-852-0
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of ActionScript: The Definitive Guide is a siren, a particular type of salamander found in North American freshwater habitats. Salamanders are amphibians with tails; they diverged from other amphibian species (including frogs) early in amphibian evolution. All salamanders have smooth skin that is kept moist by secretions from numerous glands. When their environment becomes too dry, too hot, or too cold, the cold-blooded salamanders burrow into mud and their body functions slow down. Sirens develop cocoons to shelter themselves until conditions improve.
Sirens are considered very primitive salamanders, as they are aquatic (live permanently in water), lack hind legs, have reduced front legs, gills, and other larval features into maturity, and their offspring are fertilized externally in the water. They are active at night, coming out and swimming much like eels do, using their dorsal fin in side-to-side motion to propel them forward. As they do so, they feed by gulping at insects and larvae. They expel plant matter through their gills.
Like all amphibians, sirens are an important part of a balanced ecosystem. They are small predators who in turn are preyed upon by fish and birds. Their glandular skin and fragile systems put sirens in the unfortunate position of being early pollution indicators in their freshwater habitats. Siren intermedia, an unusual siren subspecies that inhabits a large North American range and is known for its ability to produce vocal clicks and shrills, has nearly disappeared from Michigan, perhaps due to the presence of Rotenone, a chemical tool used to manage fisheries. Darren Kelly was the production editor, Norma Emory was the copyeditor, and Clairemarie Fisher O'Leary was the proofreader for ActionScript: The Definitive Guide. Claire Cloutier, Linley Dolby, and Rachel Wheeler provided quality control. Judy Hoer wrote the index. Interior composition was done by Matthew Hutchinson, Sada Preisch, Edith Shapiro, Mary Sheehan, and Gabe Weiss.
Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
David Futato designed the interior layout based on a series design by Nancy Priest. Clifford Dyer converted the files from Microsoft Word to FrameMaker 5.5.6 using tools created by Mike Sierra. The text and heading fonts are ITC Garamond Light and Garamond Book; the code font is Constant Willison. The illustrations that appear in this book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. This colophon was written by Sarah Jane Shangraw.
