Description
This practical, nuts-and-bolts toolkit puts theory into practice with ready-made answers to common Flash development questions. It's the perfect resource for Flash developers, as well as designers who are ready to start doing development work. Using O'Reilly's popular Problem/Solution/Discussion Cookbook format, this book offers 280 standalone recipes that include a brief explanation of how and why the solution works, so you can adapt it to similar situations you may run across in the future.
Table of Contents
-
Chapter 1 Drawing in Flash
-
Drawing Straight Lines
-
Drawing Curved Lines
-
Modifying Curves
-
Selecting a Line
-
Applying Line Styles
-
Controlling How Lines Scale
-
Customizing Line Caps
-
Customizing Join Styles Between Line Segments
-
Creating Effects with Strokes
-
Drawing Primitive Shapes
-
Drawing Regular Polygons
-
Drawing Stars
-
Drawing Other Assorted Shapes
-
Building Complex Shapes from Simple Shapes
-
Drawing Complex Lines and Shapes
-
Repositioning Points on Paths
-
Freehand Drawing
-
Smoothing and Straightening Lines
-
Painting Shapes
-
Tapered Painting Using a Pressure-Sensitive Graphics Tablet
-
Selecting a Shape and Changing Its Attributes
-
Applying a Stroke to a Fill
-
Applying a Fill to a Closed Path
-
Filling in Paths with Gaps
-
Mixing Custom Colors
-
Saving and Reusing Custom Colors
-
Applying Preset and Custom Gradients
-
Applying a Fill Across Multiple Elements
-
Stretching, Rotating, and Repositioning Fills
-
Scaling Elements
-
Distorting and Reshaping Elements
-
Rotating Elements
-
Creating Mirror Images
-
Positioning Elements Precisely
-
Erasing Content
-
-
Chapter 2 Importing and Exporting Artwork
-
Importing Assets from Fireworks
-
Importing Content from Freehand MX
-
Importing Simulated 3D Shapes from Freehand MX
-
Importing Acrobat PDF Content
-
Importing Illustrator AI and EPS Content
-
Exporting Single-Frame Images
-
Exporting Animated GIF Files
-
Exporting Image Maps (HTML Images with Clickable Regions)
-
-
Chapter 3 Structuring Movies and Laying Out Content
-
Setting the Background Color
-
Setting Stage Dimensions
-
Setting the Frame Rate
-
Applying New Default Document Settings
-
Creating Document Templates
-
Lengthening the Duration of the Movie
-
Changing Contents on Stage
-
Managing Content with Layers
-
Hiding, Locking, and Customizing the Display of Layer Content
-
Customizing the Display of Layers and Frames
-
Using Guide Layers
-
Managing Complex Content with Layer Folders
-
Laying Out Page Elements Proportionately
-
Aligning, Distributing, Resizing, and Spacing Elements
-
Nudging Elements with the Keyboard
-
Grouping Elements
-
Reusing Elements: Creating Symbols
-
-
Chapter 4 Creating Animation
-
Animating Changes in Location or Appearance
-
Animating Along Curved Paths
-
Applying Acceleration and Deceleration with Easing
-
Applying Advanced Tweening Effects
-
Animating Rotation
-
Looping Animations
-
Previewing Playback
-
Viewing Multiple Frames Simultaneously
-
Editing Many Frames Simultaneously
-
Morphing Graphics with Shape Tweens
-
Controlling Morphing
-
Creating Nested Animations
-
Copying Animations
-
Changing a Movie Clip's Location at Runtime with ActionScript
-
Animating Runtime Location Changes with ActionScript
-
-
Chapter 5 Simulating 3D in Flash
-
Solutions for Integrating 3D with Flash Projects
-
Creating 3D Objects
-
Adding Simple 3D Animation to Flash
-
Animating a 3D Shape Morph
-
Vector-Based 3D Graphics
-
Realistic Raster-Based 3D Graphics
-
Creating 3D Buttons
-
Using 3D Models in Flash Not Originally Created in Swift 3D
-
Creating a 3D Product View from Multiple Angles
-
Rendering Swift 3D Animations as Flash Video
-
Adding 3D Graphics Without Leaving Flash
-
-
Chapter 6 Composing Images with Bitmaps and Masks
-
Importing Bitmaps
-
Editing Bitmaps
-
Fitting Bitmaps Inside Shapes
-
Converting Bitmaps to Vector Art
-
Animating Bitmaps
-
Optimizing Bitmaps for Export
-
Using Bitmaps with Transparency
-
Masking Page Elements
-
Animating Masks
-
-
Chapter 7 Working with Text Basics
-
Adding Static Text to the Stage
-
Changing the Appearance of Text
-
Making Text Follow a Curve
-
Adding Drop Shadows to Text
-
Changing the Width of Static Text Fields (Without Stretching the Text)
-
Resizing Text Fields (Stretching the Text)
-
Setting Margins, Indentation, and Leading
-
Setting Space Between Characters
-
Optimizing Static Text for Minimum File Size
-
Superscripting and Subscripting Characters
-
Making Text Nonselectable
-
Creating Text Hyperlinks
-
Adding an Email Link to Static Text
-
Opening Browser Windows with Specific Parameters Using Static Text
-
Calling ActionScript Functions from Static Text
-
Making Small Fonts Readable
-
Checking Spelling
-
-
Chapter 8 Working with Dynamic Text
-
Creating Text that You Can Modify at Runtime
-
Changing Text at Runtime
-
Accepting User Input
-
Accepting Password Input
-
Limiting the Length of User Input
-
Setting Allowable Characters for Input
-
Retrieving User Input
-
Resizing Dynamic or Input Text Fields
-
Creating Multiline Text
-
Creating Scrolling Text
-
Specifying Wrapping of Multiline Fields
-
Using HTML Tags in Text
-
Entering International and Nonstandard Characters
-
Ensuring that Text Displays in the Original Font
-
Applying CSS
-
-
Chapter 9 Adding Interactivity
-
Creating Buttons from Scratch
-
Creating Buttons that Animate
-
Defining the Area that Activates the Button
-
Creating Hotspots with Invisible Buttons
-
Making Buttons Respond to Clicks
-
Making Buttons Respond to Mouse Rollovers
-
Making Buttons Respond to Dragging and Releasing Off the Instance
-
Building Menus with Buttons
-
Using Slider Controls
-
Using a Dial Control
-
Creating Custom Cursors
-
Creating Animated Cursors
-
Creating Interactive Custom Cursors
-
Hiding the Hand Cursor
-
Detecting Keystrokes
-
-
Chapter 10 Managing Playback
-
Pausing a Movie After It Loads
-
Preventing the Movie from Looping
-
Dividing the Timeline into Segments
-
Skipping the Playhead to a Different Frame of the Timeline
-
Creating a Basic Interface to Control Timeline Playback
-
Playing the Timeline Backward
-
Creating Seek Buttons
-
-
Chapter 11 Managing Movie Clips
-
Performing Actions Repeatedly Over Time
-
Applying Transparency to Movie Clips
-
Fading Movie Clip Instances In and Out
-
Adjusting Movie Clip Instance Color
-
Animating Color Changes
-
Brightening Movie Clip Instances
-
Transforming Movie Clips (Rotation, Scaling, and Skewing)
-
Moving a Movie Clip in Front of or Behind Another Movie Clip (or a Button or Text Field)
-
Creating New Movie Clips Based on Existing Movie Clips
-
Generating Unique Depths
-
Controlling Movie Clip Playback from Different Timelines
-
Creating Simple Drag-and-Drop Functionality
-
Constraining Drag-and-Drop Areas
-
Changing Movie Clip Visibility
-
Relocating or Moving Movie Clips
-
Detecting Collisions (or Overlaps) Between Two Movie Clips
-
Adding Movie Clips at Runtime
-
-
Chapter 12 Creating Presentations and Slideshows
-
Building a Presentation Using the Built-in Template
-
Building a Presentation Using a Slide Presentation
-
Adding Back and Forward Buttons to a Slide Presentation
-
Adding Transitions to Slide Presentations
-
Building a Presentation Using the Flash 8 Cookbook Components
-
Adding Buttons to a Presentation Using Flash 8 Cookbook Components
-
Adding Transition Effects to a Presentation Using the Flash 8 Cookbook Components
-
Building an Image Slideshow Using a Flash Template
-
Building an Image Slideshow Using the Flash 8 Cookbook Components
-
Adding Titles and Captions to a Slideshow Using the Flash 8 Cookbook Components
-
-
Chapter 13 Building Flash Forms
-
Adding a Form Control for Gathering Text Information
-
Adding a Password Form Control
-
Adding a Menu Form Control
-
Adding a Checkbox Form Control
-
Adding a Radio Button Form Control
-
Adding a Form Control for Gathering Numeric Input
-
Adding a Clickable Button
-
Adding a Button that Can Toggle
-
Adding a Form Control for Collecting Date Information
-
Performing Actions When the User Clicks a Button
-
Retrieving Text Field, Text Input, and Text Area Values
-
Retrieving Combo Box, Single-Select List, and Numeric Stepper Values
-
Retrieving Values from Multiselect Lists
-
Retrieving Values from Checkboxes and Toggle Buttons
-
Retrieving Values from Radio Button Groups
-
Retrieving Date Values
-
Submitting Form Data to the Server
-
A Feedback Form
-
-
Chapter 14 Building Advanced Flash Forms
-
Performing Actions When the User Clicks a Checkbox or Radio Button
-
Performing Actions When the User Makes a Date Selection
-
Creating a Jump Menu
-
Preselecting Date Control Values
-
Preselecting Menu Control Values
-
Validating Form Data
-
-
Chapter 15 Customizing UI Components
-
Applying Individual Component Styles
-
Applying Styles to Component Groups
-
Applying Styles to Component Types
-
Applying Styles Globally
-
Working with Color Styles
-
Working with Font and Text Styles
-
Working with Border and Background Styles
-
Working with Button and Scrollbar Styles
-
Working with List Styles
-
Working with Combo Box Styles
-
Working with Radio Button, Checkbox, and Arrow Styles
-
Using Different Artwork Themes
-
-
Chapter 16 Loading Images and Flash Content
-
Loading External SWF/Image Content
-
Loading External SWF/JPEG Content into a Draggable Window
-
Loading External SWF/JPEG Content into a Scroll Pane
-
Determining Load Progress
-
Hiding a Progress Bar When Content Has Loaded
-
Optimizing Download Time by Sharing Content Among Movies
-
-
Chapter 17 Working with Sound
-
Importing Sounds
-
Updating Imported Sounds (When the Source File Has Been Modified)
-
Adding a Sound to a Timeline for Playback
-
Synchronizing Sounds to Animation
-
Playing a Sound with a Button
-
Applying Effects to Sounds
-
Changing the In and Out Points of a Sound
-
Looping Sounds
-
Compressing Sounds in Your Movie (Optimizing Quality and File Size)
-
Starting and Stopping Sounds with Buttons
-
Stopping All Sounds
-
Manually Synchronizing Sounds and Visuals
-
-
Chapter 18 Working with Video
-
Encoding Video
-
Deploying Video
-
Playing Flash Video
-
Customizing the FLVPlayback Component
-
Adding Cue Points/Captions
-
Detecting Bandwidth
-
Optimizing Video Playback
-
-
Chapter 19 Using Data
-
Loading Variables
-
Sending Variables
-
Loading Text
-
Loading XML Data with Components
-
Calling Web Service Methods with Components
-
Calling Flash Remoting Methods with Components
-
Displaying Data with Components
-
Formatting Data with Data Binding
-
Sending Data Using Data Binding
-
-
Chapter 20 Building Preloaders
-
Determining How a Movie Will Download
-
Building a Simple Preloader
-
Building a Preloader that Displays Load Percentage
-
Using a Progress Bar to Create a Graphical Preloader
-
Creating Preloaders for Files with Exported Symbols
-
Creating Preloaders for Files with Components
-
-
Chapter 21 Publishing Flash
-
Publishing Flash to the Browser
-
Making Flash Content that Works with DHTML Menus
-
Detecting Flash Player Version
-
Passing Parameters to Flash from HTML
-
Communicating Between Flash and JavaScript
-
Integrating Flash with the Browser Back Button
-
Publishing Projectors
-
Making Fullscreen Flash Projectors
-
Printing Flash Content
-
Hiding the Context Menus
-
-
Chapter 22 Deploying Flash on Mobile Devices
-
Creating a Flash Lite Movie
-
Using the Mobile Emulator
-
Finding Supported Devices
-
Playing a Flash Lite Movie on a Device
-
User Navigation for Flash Lite
-
Overriding the Default Active Button State
-
Applying Custom Labels to the Soft Keys
-
Responding to the Soft Keys
-
Accessing External Data
-
ActionScript for Flash Lite
-
Using Sound in Flash Lite
-
The Flash Lite Development Community
-
-
Chapter 23 Making Movies Accessible
-
Detecting and Redirecting Users with Assistive Devices
-
Making Content Accessible
-
Making Animated, Interactive, and Visually Complex Movies Accessible
-
Creating Accessible Buttons
-
Making Keyboard-Navigable Movies
-
Providing Captions
-
-
About the Author
-
Colophon
Product Details
- Title:
- Flash 8 Cookbook
- By:
- Joey Lott
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- April 2006
- Pages:
- 544
- Print ISBN:
- 978-0-596-10240-1
- | ISBN 10:
- 0-596-10240-2
Customer Reviews




