1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu Using Flash- P1 pdf

100 287 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Nội dung

Using Flash Trademarks Add Life to the Web, Afterburner, Aftershock, Andromedia, Allaire, Animation PowerPack, Aria, Attain, Authorware, Authorware Star, Backstage, Bright Tiger, Clustercats, ColdFusion, Contribute, Design In Motion, Director, Dream Templates, Dreamweaver, Drumbeat 2000, EDJE, EJIPT, Extreme 3D, Fireworks, Flash, Flash Lite, Flex, Fontographer, FreeHand, Generator, HomeSite, JFusion, JRun, Kawa, Know Your Site, Knowledge Objects, Knowledge Stream, Knowledge Track, LikeMinds, Lingo, Live Effects, MacRecorder Logo and Design, Macromedia, Macromedia Action!, Macromedia Breeze, Macromedia Flash, Macromedia M Logo and Design, Macromedia Spectra, Macromedia xRes Logo and Design, MacroModel, Made with Macromedia, Made with Macromedia Logo and Design, MAGIC Logo and Design, Mediamaker, Movie Critic, Open Sesame!, Roundtrip, Roundtrip HTML, Shockwave, Sitespring, SoundEdit, Titlemaker, UltraDev, Web Design 101, what the web can be, and Xtra are either registered trademarks or trademarks of Macromedia, Inc. and may be registered in the United States or in other jurisdictions including internationally. Other product names, logos, designs, titles, words, or phrases mentioned within this publication may be trademarks, service marks, or trade names of Macromedia, Inc. or other entities and may be registered in certain jurisdictions including internationally. Third-Party Information This guide contains links to third-party websites that are not under the control of Macromedia, and Macromedia is not responsible for the content on any linked site. If you access a third-party website mentioned in this guide, then you do so at your own risk. Macromedia provides these links only as a convenience, and the inclusion of the link does not imply that Macromedia endorses or accepts any responsibility for the content on those third-party sites. Speech compression and decompression technology licensed from Nellymoser, Inc. (www.nellymoser.com). Sorenson™ Spark™ video compression and decompression technology licensed from Sorenson Media, Inc. Opera ® browser Copyright © 1995-2002 Opera Software ASA and its suppliers. All rights reserved. Apple Disclaimer APPLE COMPUTER, INC. MAKES NO WARRANTIES, EITHER EXPRESS OR IMPLIED, REGARDING THE ENCLOSED COMPUTER SOFTWARE PACKAGE, ITS MERCHANTABILITY OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. THE EXCLUSION OF IMPLIED WARRANTIES IS NOT PERMITTED BY SOME STATES. THE ABOVE EXCLUSION MAY NOT APPLY TO YOU. THIS WARRANTY PROVIDES YOU WITH SPECIFIC LEGAL RIGHTS. THERE MAY BE OTHER RIGHTS THAT YOU MAY HAVE WHICH VARY FROM STATE TO STATE. Copyright © 2004 Macromedia, Inc. All rights reserved. This manual may not be copied, photocopied, reproduced, translated, or converted to any electronic or machine-readable form in whole or in part without prior written approval of Macromedia, Inc. Acknowledgments Director: Erick Vera Project Management: Julee Burdekin, Erick Vera Writing: Jay Armstrong, Jody Bleyle, Mary Burger, Francis Cheng, Jen deHaan, Stephanie Gowin, Phillip Heinz, Shimul Rahim, Samuel R. Neff Managing Editor: Rosana Francescato Editing: Mary Ferguson, Mary Kraemer, Noreen Maher, Antonio Padial, Lisa Stanziano, Anne Szabla Production Management: Patrice O’Neill Media Design and Production: Adam Barnett, Christopher Basmajian, Aaron Begley, John Francis Second Edition: June 2004 Macromedia, Inc. 600 Townsend St. San Francisco, CA 94103 3 CONTENTS CHAPTER 1: Working with Flash Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Creating or opening a document and setting properties. . . . . . . . . . . . . . . . . . . . . 12 Using document tabs for multiple documents (Windows only) . . . . . . . . . . . . . . . 14 Saving Flash documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 About adding media content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 About creating motion and interactivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 About components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Using the library to manage media assets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 About ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Multiple Timelines and levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Nested movie clips. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Using absolute and relative target paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Working with scenes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Using the Movie Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Using Find and Replace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Using the Undo, Redo, and Repeat menu commands . . . . . . . . . . . . . . . . . . . . . . 34 Using the History panel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Saving documents when you undo steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Automating tasks with the Commands menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 About customizing context menus in Flash documents . . . . . . . . . . . . . . . . . . . . . 39 About the links menu in Flash Player . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Speeding up document display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Optimizing Flash documents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Testing document download performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Printing from the Flash authoring tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 CHAPTER 2: Working with Projects (Flash Professional Only) . . . . . . . . . . . . . . 45 Creating and managing projects (Flash Professional only) . . . . . . . . . . . . . . . . . . . 46 Using version control with projects (Flash Professional only). . . . . . . . . . . . . . . . . 49 Troubleshooting remote folder setup (Flash Professional only). . . . . . . . . . . . . . . . 51 4 Contents CHAPTER 3: Using Symbols, Instances, and Library Assets . . . . . . . . . . . . . . . . 53 Types of symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 About controlling instances and symbols with ActionScript. . . . . . . . . . . . . . . . . . 55 Creating symbols. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Creating instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Creating buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Enabling, editing, and testing buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Editing symbols. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Changing instance properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Controlling instances with behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Breaking apart instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Getting information about instances on the Stage . . . . . . . . . . . . . . . . . . . . . . . . 67 Copying library assets between documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Using shared library assets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Resolving conflicts between library assets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 CHAPTER 4: Working with Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Using the Stroke Color and Fill Color controls in the Tools panel . . . . . . . . . . . . . 76 Using the Stroke Color and Fill Color controls in the Property inspector . . . . . . . 76 Working with solid colors and gradient fills in the Color Mixer. . . . . . . . . . . . . . . 77 Modifying strokes with the Ink Bottle tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Applying solid, gradient, and bitmap fills with the Paint Bucket tool. . . . . . . . . . . 79 Transforming gradient and bitmap fills . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Copying strokes and fills with the Eyedropper tool . . . . . . . . . . . . . . . . . . . . . . . . 81 Locking a gradient or bitmap to fill the Stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Modifying color palettes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 CHAPTER 5: Drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 About vector and bitmap graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Flash drawing and painting tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 About overlapping shapes in Flash. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Drawing with the Pencil tool. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Drawing straight lines, ovals, and rectangles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 Drawing polygons and stars. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Using the Pen tool. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Painting with the Brush tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Reshaping lines and shape outlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 Erasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Modifying shapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 Snapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Specifying drawing settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 Contents 5 CHAPTER 6: Working with Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 About Unicode text encoding in Flash applications . . . . . . . . . . . . . . . . . . . . . . . 107 About font outlines and device fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Creating text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 Creating scrolling text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 Setting text attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 Creating font symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 Editing text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 Checking spelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 About transforming text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Using Timeline effects with text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Breaking text apart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 Linking text to a URL (horizontal text only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 Preserving rich text formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 Substituting missing fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Controlling text with ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Creating scrolling text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 CHAPTER 7: Using Imported Artwork. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Placing artwork into Flash. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Working with imported bitmaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 CHAPTER 8: Working with Graphic Objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 Selecting objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 Grouping objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Moving, copying, and deleting objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 Stacking objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 Transforming objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 Flipping objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 Restoring transformed objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154 Aligning objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 Breaking apart groups and objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 CHAPTER 9: Creating Motion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 Using Timeline effects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 Tweened animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 Frame-by-frame animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 Layers in animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 Creating keyframes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162 Representations of animations in the Timeline . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Frame rates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Extending still images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 Distributing objects to layers for tweened animation . . . . . . . . . . . . . . . . . . . . . . 164 Tweening instances, groups, and type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 Tweening motion along a path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 6 Contents Tweening shapes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 Using shape hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 Creating frame-by-frame animations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 Editing animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 Using mask layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 CHAPTER 10: Working with Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 About file formats for imported video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 About the Sorenson Spark codec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 Using the Video Import wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Importing Macromedia Flash Video (FLV) files. . . . . . . . . . . . . . . . . . . . . . . . . . 187 Importing linked QuickTime video files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 About playing back external FLV files dynamically . . . . . . . . . . . . . . . . . . . . . . . 189 Changing the properties of a video clip . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 Controlling video playback using behaviors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 About controlling video playback using the Timeline . . . . . . . . . . . . . . . . . . . . . 192 Exporting FLV files from video-editing applications (Flash Professional only) . . . 192 Playing FLV video clips with media components (Flash Professional only) . . . . . 196 CHAPTER 11: Working with Sound . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Importing sounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 Adding sounds to a document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Adding sounds to buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 Using sounds with Sound objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 About accessing ID3 properties in MP3 files with Flash Player . . . . . . . . . . . . . . 205 Using the sound-editing controls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 Controlling sound playback using behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 Starting and stopping sounds at keyframes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 About the onSoundComplete event. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 Compressing sounds for export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 Using sounds in Flash documents for mobile devices (Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Creating a Flash Lite sound file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 CHAPTER 12: Working with Screens (Flash Professional Only) . . . . . . . . . . . . 215 Understanding screen-based documents and the screen authoring environment (Flash Professional only) . . . . . . . . . . . . . . . . . 216 Using the Screen Outline pane (Flash Professional only) . . . . . . . . . . . . . . . . . . . 219 About undoing and redoing commands with screens (Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 Using the screens context menu (Flash Professional only) . . . . . . . . . . . . . . . . . . 220 Creating a new screen-based document (Flash Professional only). . . . . . . . . . . . . 220 Adding screens to a document (Flash Professional only) . . . . . . . . . . . . . . . . . . . 221 Naming screens (Flash Professional only). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 Setting properties and parameters for a screen (Flash Professional only). . . . . . . . 223 About adding media content to screens (Flash Professional only). . . . . . . . . . . . . 226 Contents 7 Selecting and moving screens (Flash Professional only) . . . . . . . . . . . . . . . . . . . . 226 Creating controls and transitions for screens with behaviors (Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228 Using Find and Replace with screens (Flash Professional only) . . . . . . . . . . . . . . 230 About using the Movie Explorer with screens (Flash Professional only) . . . . . . . . 230 About using Timelines with screens (Flash Professional only) . . . . . . . . . . . . . . . 231 About using ActionScript with screens (Flash Professional only) . . . . . . . . . . . . . 231 About using components with screens (Flash Professional only) . . . . . . . . . . . . . 233 Accessibility in the Flash screens authoring environment (Flash Professional only)233 CHAPTER 13: Creating Multilanguage Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235 Selecting an encoding language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 Fonts for Unicode-encoded text. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 Authoring multilanguage text with the Strings panel . . . . . . . . . . . . . . . . . . . . . . 240 Creating documents with multilanguage text without using the Strings panel . . . 248 Using external text or XML files that are not Unicode encoded. . . . . . . . . . . . . . 251 CHAPTER 14: Data Integration (Flash Professional Only) . . . . . . . . . . . . . . . . . 253 Additional resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 Creating a simple application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256 Workflows for using the data components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 Data binding (Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259 Data connectivity (Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 Data management (Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 Data resolution (Flash Professional only). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286 Advanced topics in data integration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 CHAPTER 15: Publishing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309 Playing your Flash SWF files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310 About publishing secure Flash documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310 Publishing Flash documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311 About publishing Flash Lite documents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 Using publish profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327 About HTML publishing templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329 Customizing HTML publishing templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330 Editing Flash HTML settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334 Previewing the publishing format and settings. . . . . . . . . . . . . . . . . . . . . . . . . . . 342 Using Flash Player . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342 About configuring a web server for Flash. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343 CHAPTER 16: Exporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345 Exporting Flash content and images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345 About export file formats. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346 Updating Flash content for Dreamweaver UltraDev . . . . . . . . . . . . . . . . . . . . . . 352 8 Contents CHAPTER 17: Creating Accessible Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355 Worldwide accessibility standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356 Macromedia Flash Accessibility web page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357 Understanding screen reader technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357 Using Flash to enter accessibility information for screen readers . . . . . . . . . . . . . 359 Viewing and creating tab order and reading order . . . . . . . . . . . . . . . . . . . . . . . . 366 Creating a tab order index for keyboard navigation in the Accessibility panel (Flash Professional only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367 About animation and accessibility for the visually impaired. . . . . . . . . . . . . . . . . 368 Using accessible components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369 Creating accessibility with ActionScript. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369 Accessibility for hearing-impaired users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372 Testing accessible content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373 CHAPTER 18: Printing from SWF Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375 Controlling printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376 Supported printers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376 Using the ActionScript PrintJob class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376 Building a print job. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376 Starting a print job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378 Printing frames independent of the PrintJob class . . . . . . . . . . . . . . . . . . . . . . . . 381 Changing the printed background color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384 Using frame labels to disable printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384 Printing from the Flash Player context menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . 385 Publishing a document with printable frames . . . . . . . . . . . . . . . . . . . . . . . . . . . 385 CHAPTER 19: Creating E-learning Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387 Getting started with Flash learning interactions. . . . . . . . . . . . . . . . . . . . . . . . . . 388 About Flash learning interactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 Including a Flash learning interaction in a document . . . . . . . . . . . . . . . . . . . . . 389 Changing the appearance of a learning interaction . . . . . . . . . . . . . . . . . . . . . . . 398 Testing a quiz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400 Configuring learning interactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400 Adding, naming, and registering assets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407 Setting feedback options for a learning interaction . . . . . . . . . . . . . . . . . . . . . . . 411 Setting Knowledge Track options for a learning interaction. . . . . . . . . . . . . . . . . 412 Setting navigation options for a learning interaction . . . . . . . . . . . . . . . . . . . . . . 413 Setting control button labels for a learning interaction . . . . . . . . . . . . . . . . . . . . 414 Tracking to AICC- or SCORM-compliant learning management systems. . . . . . 414 Extending learning interaction scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417 APPENDIX A: Using Samples and Templates . . . . . . . . . . . . . . . . . . . . . . . . . . 421 Using samples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421 Using templates. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424 Contents 9 APPENDIX B: XML to UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435 Layout tag summary for XML to UI dialog boxes . . . . . . . . . . . . . . . . . . . . . . . . 435 Control tag summary for XML to UI dialog boxes . . . . . . . . . . . . . . . . . . . . . . . 436 <column> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436 <columns> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437 <dialog> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438 <grid> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438 <hbox> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439 <row> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440 <rows> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441 <separator> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442 <spacer> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444 <vbox> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 <button> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447 <checkbox> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449 <choosefile> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 <colorchip> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452 <flash> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453 <label> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454 <listbox> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455 <listitem> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458 <menulist> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458 <menupop>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460 <menuitem> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461 <popupslider> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462 <property> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465 <radiogroup>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465 <radio> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466 <targetlist> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467 <textbox> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468 INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471 10 Contents [...]... Working with scenes 27 Using the Movie Explorer 28 Using Find and Replace 30 11 Using the Undo, Redo, and Repeat menu commands 34 Using the History panel 35... templates in word-processing or web page–editing applications) For information on using templates to create new documents, see “Creating or opening a document and setting properties” on page 12 When you save a document using the Save command, Flash performs a quick save, which appends new information to the existing file When you save using the Save As command, Flash arranges the new information into the file,... video playback using behaviors” on page 191 • “Controlling sound playback using behaviors” on page 206 In screen-based documents, you can use behaviors to control screens See “Creating controls and transitions for screens with behaviors (Flash Professional only)” on page 228 Note: You can use ActionScript to create complex or customized interactivity See Chapter 2, “ActionScript Basics,” in Using ActionScript... cannot drag tabs to change their order To view a document when multiple documents are open: • Click the document tab Saving Flash documents You can save a Flash FLA document using its current name and location or save the document using a different name or location You can revert to the last saved version of a document You can also save Flash MX 2004 content as a Flash MX document When a document contains... 17 Using the library to manage media assets 17 About ActionScript 21 Multiple Timelines and levels 22 Nested movie clips 22 Using absolute and relative target paths... ActionScript, see Chapter 2, “ActionScript Basics,” in Using ActionScript in Flash Media content that you add in the authoring environment includes the following: Vector artwork You can create vector artwork with the Flash drawing and painting tools or import artwork from another application See Chapter 5, “Drawing,” on page 85 and Chapter 7, Using Imported Artwork,” on page 131 Text You can create... or No Document to start Flash without opening a document For more information, see “Setting preferences in Flash” in Getting Started with Flash For information on creating a new document using the Start page, see Using the Start page” in Getting Started with Flash You can open a new window as you work To create a new document: 1 Select File > New 2 On the General tab, select Flash Document To create... application Components let you separate coding and design They also let you reuse code, and download components created by other developers For more information, see “Getting Started with Components” in Using Components Using the library to manage media assets The library in a Flash document stores media assets that you create or import for use in a Flash document The library stores imported files such as video... a font symbol For information on symbols, see Chapter 3, Using Symbols, Instances, and Library Assets,” on page 53 and “Creating font symbols” on page 116 The library also contains components that you have added to your document Components appear in the library as compiled clips For more information, see “Components in the Library panel” in Using Components The Library panel displays a scroll list... page 21 You can export library assets as a SWF file to a URL to create a runtime-shared library This lets you link to the library assets from Flash documents that import symbols using runtime sharing For more information, see Using shared library assets” on page 69 To display the Library panel: • Select Window > Library To open the library from another Flash file: 1 Select File > Import > Open External . . . . . . . . . 27 Using the Movie Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Using Find and Replace . . . . . . . . . . . . . 30 Using the Undo, Redo, and Repeat menu commands . . . . . . . . . . . . . . . . . . . . . . 34 Using the History panel. . .

Ngày đăng: 26/01/2014, 07:20

w