Book description
Sure, you can use Flash MX 2004 without being a master programmer, but as any Flash developer worth his or her salt will tell you, you're not tapping all of its power unless you're taking advantage of its scripting language "ActionScript 2.0" which offers a more robust programming model and better object-oriented programming support than ever before. Here to take the fear factor out of learning it are Flash veterans and best-selling authors Derek Franklin and Jobe Makar, who demonstrate that scripting is an instinctual process you already know by translating real-life activities into ActionScript scripts. In these pages, you'll find methodologies and techniques for building over 40 real-life Flash ActionScript projects, including sample games, --- applications, Web sites, and more. New in this edition are coverage of ActionScript 2.0, Web services, Components, Printing, Video, and more. On the companion CD, you'll find all the project files and images you need to complete each project.
Table of contents
- Copyright
- Bio
- Acknowledgments
- introduction
-
1. Introducing ActionScript
- ActionScript Matures to Version 2.0
- Differences Between ActionScript 1.0 and 2.0
- Similarities Between Actionscript 1.0 and 2.0
- Why Learn ActionScript?
- ActionScript Elements
- Using the Actions Panel/ActionScript Editor
-
Planning a Project
- What do you want to occur?
- What pieces of data do you need to track?
- What needs to happen in the movie prior to a script being triggered?
- What event will trigger the main script?
- Are there decisions to be made when the main script is triggered?
- What elements make up the scene? How do they function?
- What will your scene look like?
- Writing Your First Script
- Testing Your First Script
- What You Have Learned
-
2. Using Event Handlers
- What Event Handlers Do
- Choosing the Right Event Handler
- Using Mouse Events
- Making the Most of Attaching Mouse Events to Movie Clips
- Using Frame Events
- Using Clip Events
- Orchestrating Multiple Events
- Understanding Event Handler Methods
- Using Event Handler Methods
- Using Listeners
- What You Have Learned
-
3. Understanding Target Paths
- Understanding Multiple Timelines
- Targeting the Current Movie
- Targeting the Main Movie
- Targeting a Parent Movie
- Targeting Movie Clip Instances
- Targeting Movies on Levels
- Targeting Movie Clip Instances on Levels
- Understanding Multiple Identities
- Creating and Referencing Global Elements
- What You Have Learned
-
4. Using Object Classes
- What Objects are and Why They're Useful
-
Built-In Object Classes
- Accessibility Class (Top-Level)
- Array Class (Instances)
- Boolean Class (Instances)
- Button Class (Instances)
- Capabilities Class (Top-Level)
- Color Class (Instances)
- ContextMenu Class (Instances)
- ContextMenuItems Class (Instances)
- Date Class (Instances)
- Error Class (Instances)
- Key Class (Top-Level)
- LoadVars Class (Instances)
- Math Class (Top-Level)
- Mouse Class (Top-Level)
- MovieClip Class (Instances)
- MovieClipLoader Class (Instances)
- NetConnection Class (Instances)
- NetStream Class (Instances)
- Number Class (Top-Level)
- Object Class (Instances)
- PrintJob Class (Instances)
- Selection Class (Top-Level)
- Sound Class (Instances)
- Stage Class (Top-Level)
- String Class (Instances)
- StyleSheet Class (Instances)
- System Class (Top-Level)
- TextField Class (Instances)
- TextFormat Class (Instances)
- XML Class (Instances)
- XMLSocket Class (Instances)
- Using the Color Class
- Using the Key Class to Add Interactivity
- Working with String and Selection Classes
- What You Have Learned
- 5. Using Functions
- 6. Creating and Manipulating Data
- 7. Creating Custom Classes
- 8. Using Conditional Logic
- 9. Automating Scripts with Loops
- 10. Scripting UI Components
- 11. Getting Data In and Out of Flash
- 12. Using XML with Flash
- 13. Validating Data
- 14. Working with Text Fields
-
15. Controlling Movie Clips Dynamically
- Creating Movie Clip Instances Dynamically
- Building Continuous-Feedback Buttons
- Using Actionscript to Draw Lines Dynamically
- Using the Drawing Methods
- Creating Filled Shapes Dynamically
- Z-Sorting Movie Clip Instances
- Dragging and Dropping Movie Clip Instances
- Removing Dynamically Created Content
- What You Have Learned
- 16. Time- and Frame-Based Dynamism
- 17. Scripting for Sound
-
18. Loading External Assets
- The Ins and Outs of Loading External Assets
- Loading Movies into Targets
- Loading JPGs Dynamically
- Creating an Interactive Placeholder
- Loading Movies into Levels
- Controlling a Movie on a Level
- Loading MP3s Dynamically
- Reacting to Dynamically Loaded MP3s
- Extracting ID3 Data From an MP3 File
- Loading and Controlling External Video
- What You Have Learned
- 19. Testing and Debugging
- 20. Maximum-Strength SWFs
- 21. Printing and Context Menus
- Licensing Agreement
Product information
- Title: Macromedia® Flash™ MX 2004 ActionScript: Training from the Source
- Author(s):
- Release date: November 2003
- Publisher(s): Adobe Press
- ISBN: 9780321213433
You might also like
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Your Brain at Work
Meet Emily and Paul, the parents of two young children. Emily is a newly promoted executive …
audiobook
The Design of Everyday Things
First, businesses discovered quality as a key competitive edge; next came science. Now, Donald A. Norman, …
book
Articulating Design Decisions, 2nd Edition
Talking to people about your designs might seem like a basic skill, but it can be …