Book description
Powerful development and design tools require thorough and
authoritative technical advice and documentation. When it comes to
Macromedia Flash, no one is more authoritative than Macromedia
Development and writing teams. Now their official documentation is
available to you in printed book form. As you work, keep this guide
by your side for ready access to valuable information on using
Flash. We’ve designed it so that it’s easy to annotate
as you progress.
Learning ActionScript 2.0 for Macromedia Flash 8 shows you
how to write proper ActionScript syntax to create useful and
interactive Flash applications. This book includes examples of
object-oriented programming, and teaches you how to write custom
classes for your Flash applications. Learning ActionScript 2.0
for Macromedia Flash 8 also includes numerous hands-on examples
on how to apply expressive and interactive features to your files
using ActionScript code, such as file upload, filter effects,
scripted animation, and anti-alias text using the FlashType font
rendering engine.
In Learning Actionscript 2.0 for Macromedia Flash 8, learn
how to:
• Write proper ActionScript syntax using
the fundamentals of the ActionScript language.
• Use object-oriented programming
techniques to build Flash applications.
• Use ActionScript classes to add
interactivity and expressive features to your Flash
applications.
• Use best practices and coding conventions
to optimize, structure, and write consistent ActionScript.
Table of contents
- Copyright
- Introduction
- 1. What’s New in Flash 8 ActionScript
-
2. Writing and Editing ActionScript 2.0
- About ActionScript and events
- Organizing ActionScript code
- Using the Actions panel and Script window
- About the Actions panel
- About the Script window
-
About coding in the Actions panel and Script window
- About the Actions panel and Script window toolbars
- About ActionScript editing options
- About ActionScript preferences
- About code hinting in Flash
- Formatting code
- Using syntax highlighting
- Using line numbers and word wrap
- Using Escape shortcut keys
- Showing hidden characters
- Using the Find tool
- Checking syntax and punctuation
- Importing and exporting scripts
- About Actions panel features
- About behaviors
- About ActionScript publish settings
- 3. About ActionScript
-
4. Data and Data Types
- About data
- About data types
- About variables
- Organizing data in objects
- About casting
-
5. Syntax and Language Fundamentals
- About syntax, statements, and expressions
- About dot syntax and target paths
- About language punctuators
- About constants and keywords
- About statements
- About arrays
-
About operators
- Using operators to manipulate values
- About operator precedence and associativity
- About using operators with strings
- Using dot and array access operators
- About postfix operators
- About unary operators
- About multiplicative operators
- About additive operators
- Using numeric operators
- About relational operators
- About equality operators
- Using relational and equality operators
- About assignment operators
- Using assignment operators
- About logical operators
- Using logical operators
- About bitwise shift operators
- About bitwise logical operators
- Using bitwise operators
- About the conditional operator
- Using operators in a document
-
6. Functions and Methods
- About functions and methods
- Understanding methods
-
7. Classes
- About object-oriented programming and Flash
- Writing custom class files
- About working with custom classes in an application
- Example: Writing custom classes
- Example: Using custom class files in Flash
- Assigning a class to symbols in Flash
- Compiling and exporting classes
- Understanding classes and scope
- About top-level and built-in classes
- About working with built-in classes
- 8. Inheritance
- 9. Interfaces
- 10. Handling Events
-
11. Working with Movie Clips
- About controlling movie clips with ActionScript
- Calling multiple methods on a single movie clip
- Loading and unloading SWF files
- Changing movie clip position and appearance
- Dragging movie clips
- Creating movie clips at runtime
- Adding parameters to dynamically created movie clips
- Managing movie clip depths
- About caching and scrolling movie clips with ActionScript
- Using movie clips as masks
- Handling movie clip events
- Assigning a class to a movie clip symbol
- Initializing class properties
-
12. Working with Text and Strings
- About text fields
- About loading text and variables into text fields
- Using fonts
- About font rendering and anti-alias text
- About text layout and formatting
-
Formatting text with Cascading Style Sheet styles
- Supported CSS properties
- Creating a style sheet object
- Loading external CSS files
- Creating new styles with ActionScript
- Applying styles to a TextField object
- Applying a style sheet to a TextArea component
- Combining styles
- Using style classes
- Styling built-in HTML tags
- An example of using styles with HTML
- Using styles to define new tags
- An example of using styles with XML
- Using HTML-formatted text
- Example: Creating scrolling text
- About strings and the String class
-
13. Animation, Filters, and Drawings
- Scripting animation with ActionScript 2.0
- About bitmap caching, scrolling, and performance
- About the Tween and TransitionManager classes
- Using filter effects
- Working with filters using ActionScript
- Manipulating filter effects with code
- Creating bitmaps with the BitmapData class
- About blending modes
- About operation order
- Drawing with ActionScript
- Understanding scaling and slice guides
- 14. Creating Interaction with ActionScript
-
15. Working with Images, Sound, and Video
- About loading and working with external media
- Loading external SWF and image files
- About loading and using external MP3 files
- Assigning linkage to assets in the library
- About using FLV video
- About creating progress animations for media files
- 16. Working with External Data
-
17. Understanding Security
- About compatibility with previous Flash Player security models
-
About local file security and Flash Player
- Understanding local security sandboxes
- About Flash Player security settings
- About local file security and projector files
- About troubleshooting legacy SWF files
- Fixing legacy content deployed on local computers
- Publishing files for local deployment
- Testing content locally with Flash 8 local file security restrictions
- About the sandboxType property
- About local-with-file-system restrictions
- About domains, cross-domain security, and SWF files
- Server-side policy files for permitting access to data
- HTTP to HTTPS protocol access between SWF files
- 18. Debugging Applications
- 19. Best Practices and Coding Conventions for ActionScript 2.0
- A. Error Messages
- B. Deprecated Flash 4 operators
- C. Keyboard Keys and Key Code Values
- D. Writing Scripts for Earlier Versions of Flash Player
-
E. Object-Oriented Programming with ActionScript 1.0
- About ActionScript 1.0
- Creating a custom object in ActionScript 1.0
- Assigning methods to a custom object in ActionScript 1.0
- Defining event handler methods in ActionScript 1.0
- Creating inheritance in ActionScript 1.0
- Adding getter/setter properties to objects in ActionScript 1.0
- Using Function object properties in ActionScript 1.0
-
F. Terminology
Product information
- Title: Learning ActionScript 2.0 for Macromedia® Flash® 8
- Author(s):
- Release date: October 2005
- Publisher(s): Adobe Press
- ISBN: 9780321394156
You might also like
book
System Center 2012 Orchestrator Unleashed
Using System Center 2012 Orchestrator, you can capture and document processes across your entire IT organization, …
book
The Amazon Fire Phone: Master your Amazon smartphone including Firefly, Mayday, Prime, and all the top apps
This affordable and engaging guide is packed with practical information to help you get the most …
book
Solaris™ 7 Reference
2004H-5 Thoroughly cross-referenced and packed with comprehensive examples for administrators and programmers Easy-to-understand explanations of UNIX …
book
Ubuntu® Linux® Bible: Featuring Ubuntu 10.04 LTS, Third Edition
The best resource on the very latest for Ubuntu and Kubuntu users! Ubuntu is a free, …