You are previewing Flash 8 Cookbook.
O'Reilly logo
Flash 8 Cookbook

Book 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.

Flash 8 Cookbook offers quick look-up (and cross-referenced) recipes in four main categories:

  • Creating Flash Content

  • Building Interactive Flash Interfaces

  • Adding Multimedia and Data

  • Planning Flash Projects

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. For people who say, "I understand everything in theory, but I don't know where to start in practice," this book offers ready-to-use answers to real-world problems.

Joey Lott is the author of ActionScript Cookbook (O'Reilly) and co-author of Flash MX 2004 ActionScript Bible (Wiley). He's a leading speaker and consultant in the Flash development community.

Table of Contents

  1. Flash 8 Cookbook
    1. Preface
      1. Audience
      2. Assumptions This Book Makes
      3. Conventions Used in This Book
      4. Using Code Examples
      5. How to Contact Us
      6. Safari® Enabled
      7. Acknowledgments
        1. Joey Lott
        2. Ezra Freedman
        3. Kris Honeycutt
      8. Author Bios
      9. Technical Editor Bios
    2. 1. Drawing in Flash
      1. 1.1. Drawing Straight Lines
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      2. 1.2. Drawing Curved Lines
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      3. 1.3. Modifying Curves
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      4. 1.4. Selecting a Line
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      5. 1.5. Applying Line Styles
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      6. 1.6. Controlling How Lines Scale
        1. Problem
        2. Solution
        3. Discussion
      7. 1.7. Customizing Line Caps
        1. Problem
        2. Solution
        3. Discussion
      8. 1.8. Customizing Join Styles Between Line Segments
        1. Problem
        2. Solution
        3. Discussion
      9. 1.9. Creating Effects with Strokes
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      10. 1.10. Drawing Primitive Shapes
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      11. 1.11. Drawing Regular Polygons
        1. Problem
        2. Solution
        3. Discussion
      12. 1.12. Drawing Stars
        1. Problem
        2. Solution
      13. 1.13. Drawing Other Assorted Shapes
        1. Problem
        2. Solution
        3. Discussion
      14. 1.14. Building Complex Shapes from Simple Shapes
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      15. 1.15. Drawing Complex Lines and Shapes
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      16. 1.16. Repositioning Points on Paths
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      17. 1.17. Freehand Drawing
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      18. 1.18. Smoothing and Straightening Lines
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      19. 1.19. Painting Shapes
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      20. 1.20. Tapered Painting Using a Pressure-Sensitive Graphics Tablet
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      21. 1.21. Selecting a Shape and Changing Its Attributes
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      22. 1.22. Applying a Stroke to a Fill
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      23. 1.23. Applying a Fill to a Closed Path
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      24. 1.24. Filling in Paths with Gaps
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      25. 1.25. Mixing Custom Colors
        1. Problem
        2. Solution
        3. Discussion
      26. 1.26. Saving and Reusing Custom Colors
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      27. 1.27. Applying Preset and Custom Gradients
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      28. 1.28. Applying a Fill Across Multiple Elements
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      29. 1.29. Stretching, Rotating, and Repositioning Fills
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      30. 1.30. Scaling Elements
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      31. 1.31. Distorting and Reshaping Elements
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      32. 1.32. Rotating Elements
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      33. 1.33. Creating Mirror Images
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      34. 1.34. Positioning Elements Precisely
        1. Problem
        2. Solution
        3. Discussion
      35. 1.35. Erasing Content
        1. Problem
        2. Solution
        3. Discussion
    3. 2. Importing and Exporting Artwork
      1. 2.1. Importing Assets from Fireworks
        1. Problem
        2. Solution
        3. Discussion
      2. 2.2. Importing Content from Freehand MX
        1. Problem
        2. Solution
        3. Discussion
      3. 2.3. Importing Simulated 3D Shapes from Freehand MX
        1. Problem
        2. Solution
        3. Description
        4. See Also
      4. 2.4. Importing Acrobat PDF Content
        1. Problem
        2. Solution
        3. Discussion
      5. 2.5. Importing Illustrator AI and EPS Content
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      6. 2.6. Exporting Single-Frame Images
        1. Problem
        2. Solution
        3. Discussion
      7. 2.7. Exporting Animated GIF Files
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      8. 2.8. Exporting Image Maps (HTML Images with Clickable Regions)
        1. Problem
        2. Solution
        3. Discussion
    4. 3. Structuring Movies and Laying Out Content
      1. 3.1. Setting the Background Color
        1. Problem
        2. Solution
        3. Discussion
      2. 3.2. Setting Stage Dimensions
        1. Problem
        2. Solution
        3. Discussion
      3. 3.3. Setting the Frame Rate
        1. Problem
        2. Solution
        3. Discussion
      4. 3.4. Applying New Default Document Settings
        1. Problem
        2. Solution
        3. Discussion
      5. 3.5. Creating Document Templates
        1. Problem
        2. Solution
        3. Discussion
      6. 3.6. Lengthening the Duration of the Movie
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      7. 3.7. Changing Contents on Stage
        1. Problem
        2. Solution
        3. Discussion
      8. 3.8. Managing Content with Layers
        1. Problem
        2. Solution
        3. Discussion
      9. 3.9. Hiding, Locking, and Customizing the Display of Layer Content
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      10. 3.10. Customizing the Display of Layers and Frames
        1. Problem
        2. Solution
        3. Discussion
      11. 3.11. Using Guide Layers
        1. Problem
        2. Solution
        3. Discussion
      12. 3.12. Managing Complex Content with Layer Folders
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      13. 3.13. Laying Out Page Elements Proportionately
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      14. 3.14. Aligning, Distributing, Resizing, and Spacing Elements
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      15. 3.15. Nudging Elements with the Keyboard
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      16. 3.16. Grouping Elements
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      17. 3.17. Reusing Elements: Creating Symbols
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
    5. 4. Creating Animation
      1. 4.1. Animating Changes in Location or Appearance
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      2. 4.2. Animating Along Curved Paths
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      3. 4.3. Applying Acceleration and Deceleration with Easing
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      4. 4.4. Applying Advanced Tweening Effects
        1. Problem
        2. Solution
        3. Discussion
      5. 4.5. Animating Rotation
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      6. 4.6. Looping Animations
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      7. 4.7. Previewing Playback
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      8. 4.8. Viewing Multiple Frames Simultaneously
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      9. 4.9. Editing Many Frames Simultaneously
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      10. 4.10. Morphing Graphics with Shape Tweens
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      11. 4.11. Controlling Morphing
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      12. 4.12. Creating Nested Animations
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      13. 4.13. Copying Animations
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      14. 4.14. Changing a Movie Clip’s Location at Runtime with ActionScript
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      15. 4.15. Animating Runtime Location Changes with ActionScript
        1. Problem
        2. Solution
        3. Discussion
    6. 5. Simulating 3D in Flash
      1. 5.1. Solutions for Integrating 3D with Flash Projects
        1. Problem
        2. Solution
        3. Discussion
          1. Freehand drawing methods
          2. Importing prerendered images from 3D programs
          3. Mimicking 3D with ActionScript
          4. Using Swift 3D from Electric Rain
          5. Basic elements of a 3D scene
      2. 5.2. Creating 3D Objects
        1. Problem
        2. Solution
        3. Discussion
          1. Setting up a new document
          2. Building the chessboard
          3. Creating the chess pieces
          4. Modeling the pawn
          5. Modeling the knight
      3. 5.3. Adding Simple 3D Animation to Flash
        1. Problem
        2. Solution
        3. Discussion
      4. 5.4. Animating a 3D Shape Morph
        1. Problem
        2. Solution
        3. Discussion
      5. 5.5. Vector-Based 3D Graphics
        1. Problem
        2. Solution
        3. Discussion
      6. 5.6. Realistic Raster-Based 3D Graphics
        1. Problem
        2. Solution
        3. Discussion
          1. Preparing the bitmap materials
      7. 5.7. Creating 3D Buttons
        1. Problem
        2. Solution
        3. Discussion
          1. Creating navigation with button symbols
          2. Creating navigation with movie clip (MC) symbols
      8. 5.8. Using 3D Models in Flash Not Originally Created in Swift 3D
        1. Problem
        2. Solution
        3. Discussion
          1. Bringing files into Swift 3D
          2. Working with imported models
          3. Troubleshooting files
      9. 5.9. Creating a 3D Product View from Multiple Angles
        1. Problem
        2. Solution
        3. Discussion
          1. Creating the animated product views in Swift 3D
          2. Adding interaction in Flash
      10. 5.10. Rendering Swift 3D Animations as Flash Video
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      11. 5.11. Adding 3D Graphics Without Leaving Flash
        1. Problem
        2. Solution
        3. Discussion
          1. Importing directly from Flash
          2. Importing AI/EPS files directly into Swift 3D Xpress
    7. 6. Composing Images with Bitmaps and Masks
      1. 6.1. Importing Bitmaps
        1. Problem
        2. Solution
        3. Discussion
      2. 6.2. Editing Bitmaps
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      3. Fitting Bitmaps Inside Shapes
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      4. 6.3. Converting Bitmaps to Vector Art
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      5. 6.4. Animating Bitmaps
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      6. 6.5. Optimizing Bitmaps for Export
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      7. 6.6. Using Bitmaps with Transparency
        1. Problem
        2. Solution
        3. Discussion
      8. 6.7. Masking Page Elements
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      9. 6.8. Animating Masks
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
    8. 7. Working with Text Basics
      1. 7.1. Adding Static Text to the Stage
        1. Problem
        2. Solution
        3. Discussion
      2. 7.2. Changing the Appearance of Text
        1. Problem
        2. Solution
        3. Discussion
      3. 7.3. Making Text Follow a Curve
        1. Problem
        2. Solution
        3. Discussion
      4. 7.4. Adding Drop Shadows to Text
        1. Problem
        2. Solution
        3. Discussion
      5. 7.5. Changing the Width of Static Text Fields (Without Stretching the Text)
        1. Problem
        2. Solution
        3. Discussion
      6. 7.6. Resizing Text Fields (Stretching the Text)
        1. Problem
        2. Solution
        3. Discussion
      7. 7.7. Setting Margins, Indentation, and Leading
        1. Problem
        2. Solution
        3. Discussion
      8. 7.8. Setting Space Between Characters
        1. Problem
        2. Solution
        3. Discussion
      9. 7.9. Optimizing Static Text for Minimum File Size
        1. Problem
        2. Solution
        3. Discussion
      10. 7.10. Superscripting and Subscripting Characters
        1. Problem
        2. Solution
        3. Discussion
      11. 7.11. Making Text Nonselectable
        1. Problem
        2. Solution
        3. Discussion
      12. 7.12. Creating Text Hyperlinks
        1. Problem
        2. Solution
        3. Discussion
      13. 7.13. Adding an Email Link to Static Text
        1. Problem
        2. Solution
        3. Discussion
      14. 7.14. Opening Browser Windows with Specific Parameters Using Static Text
        1. Problem
        2. Solution
        3. Discussion
      15. 7.15. Calling ActionScript Functions from Static Text
        1. Problem
        2. Solution
        3. Discussion
      16. 7.16. Making Small Fonts Readable
        1. Problem
        2. Solution
        3. Discussion
      17. 7.17. Checking Spelling
        1. Problem
        2. Solution
        3. Description
    9. 8. Working with Dynamic Text
      1. 8.1. Creating Text that You Can Modify at Runtime
        1. Problem
        2. Solution
        3. Discussion
      2. 8.2. Changing Text at Runtime
        1. Problem
        2. Solution
        3. Discussion
      3. 8.3. Accepting User Input
        1. Problem
        2. Solution
        3. Discussion
      4. 8.4. Accepting Password Input
        1. Problem
        2. Solution
        3. Discussion
      5. 8.5. Limiting the Length of User Input
        1. Problem
        2. Solution
        3. Discussion
      6. 8.6. Setting Allowable Characters for Input
        1. Problem
        2. Solution
        3. Discussion
      7. 8.7. Retrieving User Input
        1. Problem
        2. Solution
        3. Discussion
      8. 8.8. Resizing Dynamic or Input Text Fields
        1. Problem
        2. Solution
        3. Discussion
      9. 8.9. Creating Multiline Text
        1. Problem
        2. Solution
        3. Discussion
      10. 8.10. Creating Scrolling Text
        1. Problem
        2. Solution
        3. Discussion
      11. 8.11. Specifying Wrapping of Multiline Fields
        1. Problem
        2. Solution
        3. Discussion
      12. 8.12. Using HTML Tags in Text
        1. Problem
        2. Solution
        3. Discussion
      13. 8.13. Entering International and Nonstandard Characters
        1. Problem
        2. Solution
        3. Discussion
      14. 8.14. Ensuring that Text Displays in the Original Font
        1. Problem
        2. Solution
        3. Discussion
      15. 8.15. Applying CSS
        1. Problem
        2. Solution
        3. Discussion
    10. 9. Adding Interactivity
      1. 9.1. Creating Buttons from Scratch
        1. Problem
        2. Solution
        3. Discussion
      2. 9.2. Creating Buttons that Animate
        1. Problem
        2. Solution
        3. Discussion
      3. 9.3. Defining the Area that Activates the Button
        1. Problem
        2. Solution
        3. Discussion
      4. 9.4. Creating Hotspots with Invisible Buttons
        1. Problem
        2. Solution
        3. Discussion
      5. 9.5. Making Buttons Respond to Clicks
        1. Problem
        2. Solution
        3. Discussion
      6. 9.6. Making Buttons Respond to Mouse Rollovers
        1. Problem
        2. Solution
        3. Discussion
      7. 9.7. Making Buttons Respond to Dragging and Releasing Off the Instance
        1. Problem
        2. Solution
        3. Discussion
      8. 9.8. Building Menus with Buttons
        1. Problem
        2. Solution
        3. Discussion
      9. 9.9. Using Slider Controls
        1. Problem
        2. Solution
        3. Discussion
      10. 9.10. Using a Dial Control
        1. Problem
        2. Solution
        3. Discussion
      11. 9.11. Creating Custom Cursors
        1. Problem
        2. Solution
        3. Discussion
      12. 9.12. Creating Animated Cursors
        1. Problem
        2. Solution
        3. Discussion
      13. 9.13. Creating Interactive Custom Cursors
        1. Problem
        2. Solution
        3. Discussion
      14. 9.14. Hiding the Hand Cursor
        1. Problem
        2. Solution
        3. Discussion
      15. 9.15. Detecting Keystrokes
        1. Problem
        2. Solution
        3. Discussion
    11. 10. Managing Playback
      1. 10.1. Pausing a Movie After It Loads
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      2. 10.2. Preventing the Movie from Looping
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      3. 10.3. Dividing the Timeline into Segments
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      4. 10.4. Skipping the Playhead to a Different Frame of the Timeline
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      5. 10.5. Creating a Basic Interface to Control Timeline Playback
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      6. 10.6. Playing the Timeline Backward
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      7. 10.7. Creating Seek Buttons
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
    12. 11. Managing Movie Clips
      1. 11.1. Performing Actions Repeatedly Over Time
        1. Problem
        2. Solution
        3. Discussion
      2. 11.2. Applying Transparency to Movie Clips
        1. Problem
        2. Solution
        3. Discussion
      3. 11.3. Fading Movie Clip Instances In and Out
        1. Problem
        2. Solution
        3. Discussion
      4. 11.4. Adjusting Movie Clip Instance Color
        1. Problem
        2. Solution
        3. Discussion
      5. 11.5. Animating Color Changes
        1. Problem
        2. Solution
        3. Discussion
      6. 11.6. Brightening Movie Clip Instances
        1. Problem
        2. Solution
        3. Discussion
      7. 11.7. Transforming Movie Clips (Rotation, Scaling, and Skewing)
        1. Problem
        2. Solution
        3. Discussion
      8. 11.8. Moving a Movie Clip in Front of or Behind Another Movie Clip (or a Button or Text Field)
        1. Problem
        2. Solution
        3. Discussion
      9. 11.9. Creating New Movie Clips Based on Existing Movie Clips
        1. Problem
        2. Solution
        3. Discussion
      10. 11.10. Generating Unique Depths
        1. Problem
        2. Solution
        3. Discussion
      11. 11.11. Controlling Movie Clip Playback from Different Timelines
        1. Problem
        2. Solution
        3. Discussion
      12. 11.12. Creating Simple Drag-and-Drop Functionality
        1. Problem
        2. Solution
        3. Discussion
      13. 11.13. Constraining Drag-and-Drop Areas
        1. Problem
        2. Solution
        3. Discussion
      14. 11.14. Changing Movie Clip Visibility
        1. Problem
        2. Solution
        3. Problem
      15. 11.15. Relocating or Moving Movie Clips
        1. Problem
        2. Solution
        3. Discussion
      16. 11.16. Detecting Collisions (or Overlaps) Between Two Movie Clips
        1. Problem
        2. Solution
        3. Discussion
      17. 11.17. Adding Movie Clips at Runtime
        1. Problem
        2. Solution
        3. Discussion
    13. 12. Creating Presentations and Slideshows
      1. 12.1. Building a Presentation Using the Built-in Template
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      2. 12.2. Building a Presentation Using a Slide Presentation
        1. Problem
        2. Solution
        3. Discussion
      3. 12.3. Adding Back and Forward Buttons to a Slide Presentation
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      4. 12.4. Adding Transitions to Slide Presentations
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      5. 12.5. Building a Presentation Using the Flash 8 Cookbook Components
        1. Problem
        2. Solution
        3. Discussion
      6. 12.6. Adding Buttons to a Presentation Using Flash 8 Cookbook Components
        1. Problem
        2. Solution
        3. Discussion
      7. 12.7. Adding Transition Effects to a Presentation Using the Flash 8 Cookbook Components
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      8. 12.8. Building an Image Slideshow Using a Flash Template
        1. Problem
        2. Solution
        3. Discussion
      9. 12.9. Building an Image Slideshow Using the Flash 8 Cookbook Components
        1. Problem
        2. Solution
        3. Discussion
      10. 12.10. Adding Titles and Captions to a Slideshow Using the Flash 8 Cookbook Components
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
    14. 13. Building Flash Forms
      1. 13.1. Adding a Form Control for Gathering Text Information
        1. Problem
        2. Solution
        3. Discussion
      2. 13.2. Adding a Password Form Control
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      3. 13.3. Adding a Menu Form Control
        1. Problem
        2. Solution
        3. Discussion
      4. 13.4. Adding a Checkbox Form Control
        1. Problem
        2. Solution
        3. Discussion
      5. 13.5. Adding a Radio Button Form Control
        1. Problem
        2. Solution
        3. Discussion
      6. 13.6. Adding a Form Control for Gathering Numeric Input
        1. Problem
        2. Solution
        3. Discussion
      7. 13.7. Adding a Clickable Button
        1. Problem
        2. Solution
        3. Discussion
      8. 13.8. Adding a Button that Can Toggle
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      9. 13.9. Adding a Form Control for Collecting Date Information
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      10. 13.10. Performing Actions When the User Clicks a Button
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      11. 13.11. Retrieving Text Field, Text Input, and Text Area Values
        1. Problem
        2. Solution
        3. Discussion
      12. 13.12. Retrieving Combo Box, Single-Select List, and Numeric Stepper Values
        1. Problem
        2. Solution
        3. Discussion
      13. 13.13. Retrieving Values from Multiselect Lists
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      14. 13.14. Retrieving Values from Checkboxes and Toggle Buttons
        1. Problem
        2. Solution
        3. Discussion
      15. 13.15. Retrieving Values from Radio Button Groups
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      16. 13.16. Retrieving Date Values
        1. Problem
        2. Solution
        3. Discussion
        4. See also
      17. 13.17. Submitting Form Data to the Server
        1. Problem
        2. Solution
        3. Discussion
      18. 13.18. A Feedback Form
    15. 14. Building Advanced Flash Forms
      1. 14.1. Performing Actions When the User Clicks a Checkbox or Radio Button
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      2. 14.2. Performing Actions When the User Makes a Date Selection
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      3. 14.3. Creating a Jump Menu
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      4. 14.4. Preselecting Date Control Values
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      5. 14.5. Preselecting Menu Control Values
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      6. 14.6. Validating Form Data
        1. Problem
        2. Solution
        3. Discussion
    16. 15. Customizing UI Components
      1. 15.1. Applying Individual Component Styles
        1. Problem
        2. Solution
        3. Discussion
      2. 15.2. Applying Styles to Component Groups
        1. Problem
        2. Solution
        3. Discussion
      3. 15.3. Applying Styles to Component Types
        1. Problem
        2. Solution
        3. Discussion
      4. 15.4. Applying Styles Globally
        1. Problem
        2. Solution
        3. Discussion
      5. 15.5. Working with Color Styles
        1. Problem
        2. Solution
        3. Discussion
      6. 15.6. Working with Font and Text Styles
        1. Problem
        2. Solution
        3. Description
      7. 15.7. Working with Border and Background Styles
        1. Problem
        2. Solution
        3. Discussion
      8. 15.8. Working with Button and Scrollbar Styles
        1. Problem
        2. Solution
        3. Discussion
      9. 15.9. Working with List Styles
        1. Problem
        2. Solution
        3. Discussion
      10. 15.10. Working with Combo Box Styles
        1. Problem
        2. Solution
        3. Discussion
      11. 15.11. Working with Radio Button, Checkbox, and Arrow Styles
        1. Problem
        2. Solution
        3. Discussion
      12. 15.12. Using Different Artwork Themes
        1. Problem
        2. Solution
        3. Discussion
    17. 16. Loading Images and Flash Content
      1. 16.1. Loading External SWF/Image Content
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      2. 16.2. Loading External SWF/JPEG Content into a Draggable Window
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      3. 16.3. Loading External SWF/JPEG Content into a Scroll Pane
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      4. 16.4. Determining Load Progress
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      5. 16.5. Hiding a Progress Bar When Content Has Loaded
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      6. 16.6. Optimizing Download Time by Sharing Content Among Movies
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
    18. 17. Working with Sound
      1. 17.1. Importing Sounds
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      2. 17.2. Updating Imported Sounds (When the Source File Has Been Modified)
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      3. 17.3. Adding a Sound to a Timeline for Playback
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      4. 17.4. Synchronizing Sounds to Animation
        1. Problem
        2. Solution
        3. Discussion
      5. 17.5. Playing a Sound with a Button
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      6. 17.6. Applying Effects to Sounds
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      7. 17.7. Changing the In and Out Points of a Sound
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      8. 17.8. Looping Sounds
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      9. 17.9. Compressing Sounds in Your Movie (Optimizing Quality and File Size)
        1. Problem
        2. Solution
        3. Discussion
      10. 17.10. Starting and Stopping Sounds with Buttons
        1. Problem
        2. Solution
        3. Discussion
      11. 17.11. Stopping All Sounds
        1. Problem
        2. Solution
        3. Discussion
      12. 17.12. Manually Synchronizing Sounds and Visuals
        1. Problem
        2. Solution
        3. Discussion
    19. 18. Working with Video
      1. 18.1. Encoding Video
        1. Problem
        2. Solution
        3. Discussion
      2. 18.2. Deploying Video
        1. Problem
        2. Solution
        3. Discussion
      3. 18.3. Playing Flash Video
        1. Problem
        2. Solution
        3. Discussion
      4. 18.4. Customizing the FLVPlayback Component
        1. Problem
        2. Solution
        3. Discussion
      5. 18.5. Adding Cue Points/Captions
        1. Problem
        2. Solution
        3. Discussion
      6. 18.6. Detecting Bandwidth
        1. Problem
        2. Solution
        3. Discussion
      7. 18.7. Optimizing Video Playback
        1. Problem
        2. Solution
        3. Discussion
    20. 19. Using Data
      1. 19.1. Loading Variables
        1. Problem
        2. Solution
        3. Discussion
      2. 19.2. Sending Variables
        1. Problem
        2. Solution
        3. Discussion
      3. 19.3. Loading Text
        1. Problem
        2. Solution
        3. Discussion
      4. 19.4. Loading XML Data with Components
        1. Problem
        2. Solution
        3. Discussion
      5. 19.5. Calling Web Service Methods with Components
        1. Problem
        2. Solution
        3. Discussion
      6. 19.6. Calling Flash Remoting Methods with Components
        1. Problem
        2. Solution
        3. Discussion
      7. 19.7. Displaying Data with Components
        1. Problem
        2. Solution
        3. Discussion
      8. 19.8. Formatting Data with Data Binding
        1. Problem
        2. Solution
        3. Discussion
      9. 19.9. Sending Data Using Data Binding
        1. Problem
        2. Solution
        3. Discussion
    21. 20. Building Preloaders
      1. 20.1. Determining How a Movie Will Download
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      2. 20.2. Building a Simple Preloader
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      3. 20.3. Building a Preloader that Displays Load Percentage
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      4. 20.4. Using a Progress Bar to Create a Graphical Preloader
        1. Problem
        2. Solution
        3. Discussion
      5. 20.5. Creating Preloaders for Files with Exported Symbols
        1. Problem
        2. Solution
        3. Discussion
      6. 20.6. Creating Preloaders for Files with Components
        1. Problem
        2. Solution
        3. Discussion
    22. 21. Publishing Flash
      1. 21.1. Publishing Flash to the Browser
        1. Problem
        2. Solution
        3. Discussion
      2. 21.2. Making Flash Content that Works with DHTML Menus
        1. Problem
        2. Solution
        3. Discussion
      3. 21.3. Detecting Flash Player Version
        1. Problem
        2. Solution
        3. Discussion
      4. 21.4. Passing Parameters to Flash from HTML
        1. Problem
        2. Solution
        3. Discussion
      5. 21.5. Communicating Between Flash and JavaScript
        1. Problem
        2. Solution
        3. Discussion
      6. 21.6. Integrating Flash with the Browser Back Button
        1. Problem
        2. Solution
        3. Discussion
      7. 21.7. Publishing Projectors
        1. Problem
        2. Solution
        3. Discussion
      8. 21.8. Making Fullscreen Flash Projectors
        1. Problem
        2. Solution
        3. Discussion
      9. 21.9. Printing Flash Content
        1. Problem
        2. Solution
        3. Discussion
      10. 21.10. Hiding the Context Menus
        1. Problem
        2. Solution
        3. Discussion
    23. 22. Deploying Flash on Mobile Devices
      1. 22.1. Creating a Flash Lite Movie
        1. Problem
        2. Solution
        3. Discussion
      2. 22.2. Using the Mobile Emulator
        1. Problem
        2. Solution
        3. Discussion
      3. 22.3. Finding Supported Devices
        1. Problem
        2. Solution
        3. Discussion
      4. 22.4. Playing a Flash Lite Movie on a Device
        1. Problem
        2. Solution
        3. Discussion
      5. 22.5. User Navigation for Flash Lite
        1. Problem
        2. Solution
        3. Discussion
      6. 22.6. Overriding the Default Active Button State
        1. Problem
        2. Solution
        3. Discussion
      7. 22.7. Applying Custom Labels to the Soft Keys
        1. Problem
        2. Solution
        3. Discussion
      8. 22.8. Responding to the Soft Keys
        1. Problem
        2. Solution
        3. Discussion
      9. 22.9. Accessing External Data
        1. Problem
        2. Solution
        3. Discussion
      10. 22.10. ActionScript for Flash Lite
        1. Problem
        2. Solution
        3. Discussion
      11. 22.11. Using Sound in Flash Lite
        1. Problem
        2. Solution
        3. Discussion
      12. 22.12. The Flash Lite Development Community
        1. Problem
        2. Solution
        3. Discussion
    24. 23. Making Movies Accessible
      1. 23.1. Detecting and Redirecting Users with Assistive Devices
        1. Problem
        2. Solution
        3. Discussion
      2. 23.2. Making Content Accessible
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      3. 23.3. Making Animated, Interactive, and Visually Complex Movies Accessible
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      4. 23.4. Creating Accessible Buttons
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      5. 23.5. Making Keyboard-Navigable Movies
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
      6. 23.6. Providing Captions
        1. Problem
        2. Solution
        3. Discussion
        4. See Also
    25. Index
    26. Colophon