Prentice Hall PTR - ActionScript 2.0 GARAGE
ActionScript 2.0 GARAGE
Table of Contents
Copyright
The Garage Series
Preface
Who This Book Is For
Who This Book Isn't For
What's in the Book
What's Not in the Book
About the Attitude
Chapter 1. What's New in AS2
Super-Short History
What Is AS2 Really?
Does AS1 Still Work?
Biggest Change: New Class Syntax
Components
General Changes
Language Changes
Chapter 2. Strong Typing
Strong Typing and Code Hints
Tricking Flash
Chapter 3. Function Return Typing
Part I. Forms
Chapter 4. Forms: Flash or HTML?
Chapter 5. Creating a Form Using Components
What Are Components?
Two Ways to Add Components
Chapter 6. Creating a Form from Scratch
What We Did
Chapter 7. Validating Form Data
ComboBoxes
Checkbox
Radio Buttons
Reading a DataGrid
TextInput, TextArea, and Regular Input Text Fields
Is the Right Thing Entered?
Alert
List
DateField
Chapter 8. Submitting a Form and Getting Data Back
What the Sam Hill?
Checkboxes
Radio Buttons
List
DateField
Chapter 9. Form Screens
Overview
Code Fix!
Extras
Part II. Skinning Components
Chapter 10. Setting Skins and Styles: Halo and Sample
Dealing with Halo's themeColors
Chapter 11. Setting Styles on a Single Component
Style Objects
MenuBar Misguiding
Chapter 12. Setting Styles on a Certain Type of Component
Huh?
Those Darn Buttons
Chapter 13. Setting Styles on All Components
Styles and Precedence
Chapter 14. Skinning Components
Part III. Data
Chapter 15. LoadVars Object
Code Fix!
Extra Geek
sendAndLoad()
Chapter 16. Reading in Data
Name/Value Pairs
Loading XML
Chapter 17. Sending and Receiving Data
getURL()
LoadVars.sendAndLoad()
XML.sendAndLoad()
Part IV. Loading Movies and Images
Chapter 18. Loading and Unloading Movies
Loading Images
Unloading
Levels
Chapter 19. Attaching Movies
Code Fix!
Syntax
Attaching to the Legs
Do the Fade
Chapter 20. Loading JPEGs
Part V. XML
Chapter 21. Reading and Parsing XML
Our XML
Looping through XML
Chapter 22. RSS: Parse Me, You Fool
How the Function Does Its Function Thing
Chapter 23. Creating an Internal XML Document
Basic Steps
Code Fix!
Title Nodes
Part VI. Sound
Chapter 24. Using Simple Sound
Vital to Understand
Code Fix!
Chapter 25. MP3s and ActionScript
Code Fix!
onSoundComplete
ID3
attachSound()
Part VII. Video
Chapter 26. Using Imported Video
Controlling the Clip
Exporting FLV Files
Chapter 27. Video
Playback Using Media Components
Skipping the Component
Part VIII. Menus Components
Chapter 28. Menu Component
Code Fix!
Types of Menu Items
Submenus
Menus and XML
Submenus and an External XML File
Chapter 29. MenuBar
Do It
Chapter 30. Accordion Panel
Populating the Accordion
Code Fix!
Reading from the Accordion
Reacting to Changing Movies
Part IX. Styles and Stylesheets
Chapter 31. Stylesheets
CSS
Code Fix!
Some Extra Stuff
Chapter 32. Stylesheets and XML
What the Sam Hill?
Chapter 33. TextFormat
Part X. Random Stuff
Chapter 34. Using Masks
Code Fix!
Another Example
Chapter 35. Preloaders
Code Fix!
ProgressBar Component
Preloading and Components
Chapter 36. Calling JavaScript
fscommand()
Chapter 37. Date and Time
Finding How Long From Now Until Then
Time
Chapter 38. Drawing with ActionScript
Code Fix!
Drawing Shapes
Drawing Curves
Chapter 39. _global
Code Fix!
Part XI. Classes
Chapter 40. Classes and Objects: An Introduction
Actual Code
Chapter 41. Your First Class
Chapter 42. Extending the Movie Clip Class
Classes and Subclasses
Code Fix!
Chapter 43. Adding Methods to Built-in Classes
arrayShuffle.as
Part XII. Events and Listeners
Chapter 44. Events, Handlers, and Listeners
Broadcasters
Event Handler Methods
Listeners
Chapter 45. on() and onClipEvent()
on()
onClipEvent()
Chapter 46. Event Methods
Code Fix!
Chapter 47. MovieClipLoader
Chapter 48. addListener()
Code Fix!
Events
removeListener()
Chapter 49. addEventListener()
Code Fix!
Part XIII. Some New UI Components
Chapter 50. DataGrid Component
Code Fix!
Code Fix!
Chapter 51. Label Component
Styles
Chapter 52. Loader
Code Fix!
Chapter 53. Numeric Stepper
Chapter 54. Tree
Code Fix!
Populating the Tree with an Internal XML Document
Chapter 55. Window Component
Pop-Up Window
Close the Window
Issues
Part XIV. Data Binding
Chapter 56. Yes, Data Binding
No, ReallyWhat's Data Binding?
Code Fix!
Getting Deeper
Index
SYMBOL
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y