O'Reilly logo

Flash CS3: The Missing Manual by Chris Grover, E. A. Vander Veer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction

Flash has been the gold standard in multimedia creation software for almost 10 years. The program has come a long way since the mid-1990s, when professional animators—like those at Microsoft's MSN and Disney Online—used an early incarnation called FutureSplash. Over the years, Flash earned a following of programming geeks as an alternative to Java for creating vector-based Web graphics. In the 21st century, though, anyone with a desktop computer (or even a laptop) can be a Web animator. With Flash CS3's easy-to-use panels and toolbars, you can create sophisticated, interactive animations that run on the Web, standalone computers, handhelds, kiosks—virtually anywhere you find a screen (see Figure I-1).

Here are just some of the things you can create with Flash:

  • Drawings and animations. Flash gives you the drawing tools to create original artwork and the animation tools to give it movement and life. Then you can edit your Flash document in another program, add it to a Web page, or burn it to a CD or DVD. Flash recognizes multimedia files created using other programs, so you can enrich your animations with image, sound, and video files you already have (or that you find on the Web).

  • Multimedia Web sites. You can create original drawings and animations with Flash, add in voice-overs, background music, and video clips, and then publish it all to a Web page with the click of a button. Using Flash's built-in scripting language, ActionScript, you can add interactive features like hotspots and navigation bars. You can even position elements on the screen precisely and then change the layout at runtime. With Flash, even regular folks can create real-time video blogs and eye-grabbing splash pages.

    The Yankee Candle Company's Web site is just one example of the movement, interactivity, and polish Flash can add to a site. From the home page, clicking Custom Candle Favors → Custom Votives displays this Web-based Flash program.

    Figure I-1. The Yankee Candle Company's Web site is just one example of the movement, interactivity, and polish Flash can add to a site. From the home page, clicking Custom Candle Favors → Custom Votives displays this Web-based Flash program.

  • Banner ads. These blinking, flashing, animated strips of Madison Avenue marvelousness are easy to produce in Flash. Typically, banner ads consist of a skinny animation and a link to the sponsor site (see Figure I-2).

    Over half of the banner ads you run across on the Web were produced using Flash. The best ones combine creativity with action. Here, Magritte-like characters float up into the air, suspended from their umbrellas. Clicking the banner zips you to a different Web page, where you can place an order online.

    Figure I-2. Over half of the banner ads you run across on the Web were produced using Flash. The best ones combine creativity with action. Here, Magritte-like characters float up into the air, suspended from their umbrellas. Clicking the banner zips you to a different Web page, where you can place an order online.

  • Tutorials. Web-based training courses, which often include a combination of text, drawings, animations, video clips, and voice-overs, are a natural fit for Flash. By hooking Flash up to a server on the back end, you can even present your audience with graded tests and up-to-the-minute product information.

    You don't have to deliver your tutorials over the Web, though; you can publish them as standalone projector files (Chapter 14) and deliver them to your students via CDs or DVDs.

  • Full-length ads and product presentations. Marketing types can use Flash to create slick, storyboarded, buy-our-stuff-now animations and program mock-ups.

  • Customer service kiosks. Many of the kiosks you see in stores and building lobbies use Flash to help customers find what they need. For example, photo kiosks walk customers through the process of transferring images from their digital cameras and ordering their own prints; kiosks in banks let customers withdraw funds, check interest rates, and make deposits.

  • Television and film effects. The Hollywood set has been known to use Flash to create spectacular visual effects for TV shows and even small feature films. But where the TV and film industry is seriously adopting Flash is on promotional Web sites, where they wed Flash graphics to scenes taken from their movies and shows to present powerful trailers, interactive tours of movie and show sets, and teasers.

  • Games and other programs. With support for runtime scripting, back end data transfers, and interactive controls such as buttons and text boxes, Flash has everything a programmer needs to create a cool-looking game (check out www.addictinggames.com for a few examples) or other rich Internet applications (Adobe/Macromedia's $20 term for "Web-based program").

Unfortunately, there's no such thing as a free lunch. If Flash is an incredibly powerful, useful program—and it is—it's also harder to use than a greased tightrope.

That's where this book comes in. You don't have to be a professional artist, animator, or software developer to create useful animations with Flash. All you need are this book and an idea of what you'd like to create. The examples, explanations, and step-by-step instructions in the next 14 chapters show you how to turn that idea into a working animation.

Flash CS3 Professional for Everyone

Previous versions of Flash came in two flavors: Professional and Standard. With Adobe Creative Suite 3, there's just one product: Flash CS3 Professional (Figure I-3). Flash Professional offers everything for both professional developers and weekend Web mavens. Some of the pro-quality features include:

  • Additional graphic effects. With Flash CS3 Professional, you get convenient extras like filters (predefined blurs, glows, and drop shadows), blend modes (transparency effects that make compositing, or combining images, easy), and custom easing (the ability to slow down or speed up animated tweens with the click of a button).

  • Support for mobile authoring. Flash CS3 Professional comes with mobile templates (to help you size your animations for handhelds), an emulator (to let you see how your animations will appear on every handheld that Flash supports), and built-in publishing options.

  • Support for high-end video manipulation. Flash CS3 Professional gives you extra tools, including the Flash Video Exporter (a QuickTime plug-in that lets you create Flash video files using any Apple QuickTime–compatible video authoring tool) and the Flash Video Encoder (a standalone application that lets you convert regular video files to Flash video files). Using Flash CS3 Professional, you can link to external video files and even layer video clips on top of each other to create sophisticated composite effects.

The Flash CS3 interface looks familiar if you've used previous versions of Flash. Look closer, and you'll notice Adobe has tweaked Flash to give it more of the look and feel of other Creative Suite programs. From the tool panels to the tabbed, docking palettes, this version bears resemblance to its new Adobe cousins like Photoshop and Illustrator.

Figure I-3. The Flash CS3 interface looks familiar if you've used previous versions of Flash. Look closer, and you'll notice Adobe has tweaked Flash to give it more of the look and feel of other Creative Suite programs. From the tool panels to the tabbed, docking palettes, this version bears resemblance to its new Adobe cousins like Photoshop and Illustrator.

What's New in Flash CS3

When Adobe acquired Macromedia at the end of 2005, graphic artists and Web designers held their breath waiting to learn what this meant for Flash, as well as Dreamweaver (a favorite Web design tool). For the most part, there were sighs of relief when Adobe folded both beloved programs into its high-powered Creative Suite. Some Flash fans were concerned that Adobe might change Flash from a simple animation design program into a full-fledged program authoring environment. Actually, the difference between the two is mostly in the minds of marketing geeks. After all, an interactive Web site or tutorial created using Flash is, by definition, a program.

Now that the dust has settled, most of the improvements you see in Flash CS3 compared to the previous version (Flash 8) have to do with bringing Flash into the Adobe Creative Suite family. For the programming crowd, the big news is Action-Script 3.0—Flash's new scripting language. But in addition, Adobe also added a few usability tweaks, plus a couple of new image-editing features.

Here's a short list of the differences between Flash CS3 and Flash 8:

  • A traditional Adobe workspace. The Flash workspace now takes its cues from Photoshop, Illustrator, and the other programs in Adobe's Creative Suite family. At first the changes may seem cosmetic and somewhat subtle, but as you work with Flash, you'll appreciate refinements like the way the docking panels snap into place. The toolbars and other onscreen doodads have a more professional look, too. If you're used to working with Photoshop or other Adobe products, you'll take to Flash like a duck to water. If you're new to the Adobe family, the skills you learn in Flash will come in handy if you move on to Photoshop, Premiere, or After Effects.

  • Better file organization. Adobe brings a couple additional presents to the Flash party: Bridge and Version Cue. Bridge is an absolutely terrific tool for organizing, viewing, and sharing photos and artwork. Now you can use Bridge to import photos from your digital camera, organize them in albums, modify them in Photoshop and then slurp them right into a Flash animation or Dreamweaver Web page. Version Cue is a slick program that makes it much easier to keep track of the changes you've made to graphics files, even after you've saved them. Use Version Cue, and you'll always be able to go back to a previous version of your artwork. Say goodbye to files with names like: mydog-1.jpg, mydog-2.jpg…mydog-34.jpg.

  • Improved import features for Photoshop and Illustrator. Flash now plays better with files imported from Photoshop and Illustrator. For example, you can choose which layers you import from a Photoshop (PSD) file. (In the past, when you imported Illustrator files, Flash had a tendency to mess with your carefully positioned curve controls, also known as Bezier points.)

  • Pen Tool enhancements. Flash always had pretty idiosyncratic drawing tools for shapes and objects. If you're used to the old tools, fine. They're still there. If you'd prefer something more like the tools you find in Illustrator, you'll be pleased to learn that the pen tool in Flash CS3 comes even closer to the Illustrator industry standard.

  • Fancy new copy and paste tricks. You can now copy and paste things you never could before. For example, you can copy and paste filter effects from one shape or drawing to another. Or, if you like the way an object moves in your animation, you can copy the motion that describes the action and apply it to another object.

  • Improved Bitmap Symbol Library. In Flash, you store photos, drawings, and other images in your Library—an onscreen palette that's always available. Instead of searching all over your computer for images, you can check them out of your handy Library. The new, improved Flash gives you a bigger, better view of your photos and other bitmap-style graphic masterpieces.

  • Better video through QuickTime. QuickTime is an industry standard for distributing video files over the Internet and on discs. You've been able to convert your Flash animations to QuickTime in many versions of Flash. Now those movies will look even better, whether you're streaming them over the Internet or sending them off to Premiere or Final Cut for inclusion in your upcoming feature film.

  • Improvements in ActionScript. The new Flash has offerings for both artists and programmers. For the left-brain crowd there's a new version of the ActionScript language. ActionScript 3.0 uses a programming model that moves closer to object-oriented standards. For programmers, the terrain is more familiar, and it's easier to create snazzier programs using Flash. It's also easier to reuse the code from one project in a new project. And even if you hope to never write a scrap of code, you'll still reap the benefits of the improved ActionScript—the Flash animations written by programmers will run faster on your computer.

Anatomy of an Animation

Animation is a complex subject, and Flash is a complex program. You'll have a much easier time plowing through the rest of the book if you start with a couple of basics under your belt: specifically, what an animation is and how you go about creating one in Flash. This section and the following one give you some background.

Animators used to develop animations in a frame-by-frame sequence, where every frame contained a different image. As the frames sped by on a projector, the hundreds (or hundreds of thousands) of static images created the illusion of moving characters.

Painstaking work? You bet. Before the age of computerized generation—which has really just come into its own in the last 15 years or so, with big names like Pixar—major animation houses employed whole armies of graphic artists, each charged with producing hundreds of drawings that represented a mere fraction of the finished work. What we yukked at for a scant few minutes took weeks and dozens of tired, cramped hands to produce. One mistake, one spilled drop of coffee, and these patient-as-Job types would have to grab fresh paper and start all over again. When everything was done, the animation would have to be put together—much like one of those flip books where you flip pages real fast to see a story play out—while it was being filmed by special cameras.

Flash brings you the power of a design studio, expert tools, and the equivalent of a staff of highly trained detail people. You still have to come up with an idea for the animation, and you have to draw (or find and import) at least a couple of images. But beyond that, Flash can take over and generate most of the frames you need to flesh out your animation.

It's pretty incredible, when you think about it. A few hundred bucks and a few hours spent working with Flash, and you've got an animation that, just a few years ago, you'd have had to pay a swarm of professionals union scale to produce. Sweet!

Flash in a Nutshell

Say you work for a company that does custom auto refinishing. First assignment: Design an intro page for the company's new Web site. You have the following idea for an animation:

The first thing you want your audience to see is a beat-up jalopy limping along a city street toward the center of the screen, where it stops and morphs into a shiny, like-new car as your company's jingle plays in the background. A voice-over informs your audience that your company's been in business for 20 years and offers the best prices in town.

Across the top of the screen you'd like to display the company logo, as well as a navigation bar with buttons—labeled Location, Services, Prices, and Contact—that your audience can click to get more information about your company. But you also want each part of the car to be a clickable hotspot. That way, when someone clicks one of the car's tires, he's whisked off to a page describing your custom wheels and hubcaps; when he clicks the car's body, he sees prices for dent repair and repainting; and so on.

Here's how you might go about creating this animation in Flash:

  • Using Flash's drawing tools, you draw the artwork for every keyframe of the animation: that is, every important image. For example, you'll need to create a keyframe showing the beat-up junker and a second keyframe showing the gleaming, expertly refurbished result. (Chapter 2 shows you how to draw artwork in Flash; Chapter 3 tells you everything you need to know about keyframes.)

  • Within each keyframe, you might choose to separate your artwork into different layers. Like the see-through plastic cels that professional animators used in the old days, layers let you create images separately and then stack them on top of each other to make a single composite image. For example, you might choose to put the car on one layer, your company logo on a second layer, and your city-street background on a third layer. That way, you can edit and animate each layer independently, but when the animation plays, all three elements appear to be on one seamless layer. (Chapter 4 shows you how to work with layers.)

  • Through a process called tweening, you tell Flash to fill in each and every frame in-between the keyframes to create the illusion of the junker turning slowly into a brand-new car. Flash carefully analyzes all the differences between the keyframes and does its best to build the interim frames, which you can then tweak or—if Flash gets it all wrong—redraw yourself. (Chapter 3 guides you through the tweening process.)

  • As you go along, you might decide to save a few of the elements you create (for example, your company logo), so you can reuse them again later. There's no sense in reinventing the wheel, and in addition to saving you time, reusing elements actually helps keep your animation files as small and efficient as possible. (See Chapter 7 for details on creating and managing reusable elements.)

  • Add the background music and voice-over audio clips, which you've created in other programs (Chapter 8).

  • Create the navigation bar buttons and hotspots that let your audience interact with your animation (Chapter 9).

  • Test your animation (Chapter 13) and tweak it to perfection.

  • Finally, when your animation is just the way you want it, you're ready to publish it. Without leaving the comfort of Flash, you can convert the editable .fla file you've been working with into a noneditable .swf file and either embed it into an HTML file or create a standalone projector file your audience can run without having to use a browser. Chapter 14 tells you everything you need to know about publishing.

The scenario described above is pretty simple, but it covers the basic steps you need to take when creating any Flash animation.

The Very Basics

You'll find very little jargon or nerd terminology in this book. You will, however, see a few terms and concepts that you'll encounter frequently in your computing life:

  • Clicking. This book gives you several kinds of instructions that require you to use your computer's mouse or trackpad. To click means to point the arrow cursor at something on the screen and then—without moving the cursor at all—to press and release the clicker button on the mouse (or laptop trackpad). To double-click, of course, means to click twice in rapid succession, again without moving the cursor at all. To drag means to move the cursor while pressing the button continuously. To right-click or right-drag, do the same as above, but press the mouse button on the right.

    When you see an instruction like Shift-click or Ctrl-click, simply press the key as you click.

    Note

    Macintosh computers don't come with a right mouse button. With a one-button mouse, to do the same thing as a right-click or right-drag, press the Mac's Control key as you click or drag. (Or buy a two-button mouse.) See the next section for more Windows/Mac differences.

  • Keyboard shortcuts. Every time you take your hand off the keyboard to move the mouse, you lose time and potentially disrupt your creative flow. That's why many experienced computer fans use keystroke combinations instead of menu commands wherever possible. Ctrl+B (⌘-B on the Mac), for example, is a keyboard shortcut for boldface type in Flash (and most other programs).

    When you see a shortcut like Ctrl+S (⌘-S on the Mac), which saves changes to the current document, it's telling you to hold down the Ctrl or ⌘ key, and, while it's down, type the letter S, and then release both keys.

  • Choice is good. Flash frequently gives you several ways to trigger a particular command—a menu command, or by clicking a toolbar button, or by pressing a key combination, for example. Some people prefer the speed of keyboard shortcuts; others like the satisfaction of a visual command array available in menus or toolbars. This book lists all of the alternatives, but by no means are you expected to memorize all of them.

Macintosh and Windows

Flash CS3 works much the same way in its Mac and Windows incarnations except for a few interface differences and a slight variation in performance—Flash animations tend to run a bit slower on the Mac. This book's illustrations give Mac and Windows equal time, alternating by chapter, so you get to see how all of Flash's features look, no matter what kind of computer you're running.

There is one small difference between Mac and Windows software that you need to be aware of, and that's keystrokes. The Ctrl key in Windows is the equivalent of the Macintosh ⌘ key, and the key labeled Alt on a PC (and on non-U.S. Macs) is the equivalent of the Option key on American Mac keyboards.

Whenever this book refers to a key combination, therefore, you'll see the Windows keystroke listed first (with + symbols, as is customary in Windows documentation); the Macintosh keystroke follows in parentheses (with - symbols, in time-honored Mac tradition). In other words, you might read, "The keyboard shortcut for saving a file is Ctrl+S (⌘-S)." This book mentions any other significant differences between the Mac and Windows versions of Flash CS3 as they come up.

About This Book

Flash has gotten more powerful and more sophisticated over the years, but one thing hasn't changed: woefully poor documentation. If Flash were simple to use, the lack of documentation wouldn't be such a big deal. But Flash is a complex program—especially if you don't have a background in programming or multimedia authoring software. Basically, because Flash's documentation alternates between high-level market-speak and low-level computer engineering jargon, you're pretty much out of luck if you're a normal, intelligent person who just wants to use Flash to create a cool animated Web site and then get on with your life.

Fortunately, there's an answer—and you're holding it in your hands.

This is the book that should have come in the Flash box: one that explains all the tools and shows you step-by-step not just how to create animations from scratch, but why you want to do each step—in English, not programmer-ese. You'll learn tips and shortcuts for making Flash easier to work with, as well as making your animations as audience-friendly as possible.

Flash CS3: The Missing Manual is designed for readers of every skill level except super-advanced-programmer. If Flash is the first image creation or animation program you've ever used, you'll be able to dive right in using the explanations and examples in this book. If you come from an animation or multimedia background, you'll find this book a useful reference for mapping how you created an element in your previous program, to how you do it in Flash. "Design Time" boxes explain the art of effective multimedia design (which is an art unto itself). And while the ActionScript programming language is far too broad a subject to cover in detail in this book, you do get working examples of the most common types of actions you'll want to create in ActionScript, along with suggestions for debugging your code and tips on where to go for a more in-depth look at scripting.

About the Outline

Flash CS3: The Missing Manual is divided into five parts, each containing several chapters:

  • Part 1: Creating a Flash Animation guides you through the creation of your very first Flash animation, from the first glimmer of an idea to drawing images, animating those images, and testing your work.

  • Part 2: Advanced Drawing and Animation is the meatiest of the four parts. Here you'll see how to manipulate your drawings by rotating, skewing, stacking, and aligning them; how to add color, special effects, and multimedia files such as audio and video clips; how to slash file size by turning bits and pieces of your drawings into special elements called symbols; and how to create composite drawings using layers.

  • Part 3: Adding Interactivity shows you how to add ActionScript actions to frames to create automatic effects and to buttons to create audience-controlled effects. You'll see how to loop and reverse a section of an animation, how to let your audience choose which section of an animation to play, and how to customize the prebuilt interactive components that come with Flash.

  • Part 4: Delivering Your Animation to Its Audience focuses on testing, debugging, and optimizing your animation. You'll also find out how to publish your animation so that your audience can see and enjoy it and how to export an editable version of your animation so that you can rework it using another graphics, video editing, or Web development program.

  • Part 5: AppendixesAppendix A, "Installation and Help," explains how to install Flash and where to turn for help. Appendix B, "Flash CS3, Menu by Menu," provides a menu-by-menu description of the commands you find in Flash CS3.

About → These → Arrows

Throughout this book, you'll find instructions like, "Open your Program Files →Adobe → Adobe Flash CS3 folder." That's Missing Manual shorthand for much longer sentences like "Double-click your Program Files folder to open it. Inside, you'll find a folder called Adobe; double-click to open it. Inside that folder is a folder called Adobe Flash CS3; open it, too." This arrow shorthand also simplifies the business of choosing menu commands, as you can see in Figure I-4.

When you see instructions like "Choose Text → Style → Italic," think, "Click to pull down the Text menu and then move your mouse down to the Style command. When its submenu opens, choose the Italic option."

Figure I-4. When you see instructions like "Choose Text → Style → Italic," think, "Click to pull down the Text menu and then move your mouse down to the Style command. When its submenu opens, choose the Italic option."

Flash Examples

As you read the book's chapters, you'll encounter a number of step-by-step tutorials. You can work through them using any Flash document of your own, or use the example files provided on this book's "Missing CD" page. You can download them using any Web browser at www.missingmanuals.com/cds/. You'll find raw materials (like graphics and half-completed animations) and, in some cases, completed animations with which to compare your work.

About MissingManuals.com

At the Web site, you'll find articles, tips, and updates to this book. In fact, you're invited and encouraged to submit such corrections and updates yourself. In an effort to keep the book as up-to-date and accurate as possible, each time we print more copies of this book, we'll make any confirmed corrections you've suggested. We'll also note such changes on the Web site so that you can mark important corrections into your own copy of the book if you like. (Click the book's name and then click the Errata link to see the changes.)

In the meantime, we'd love to hear your suggestions for new books in the Missing Manual line. There's a place for that on the Web site, too, as well as a place to sign up for free email notification of new titles in the series.

Safari® Enabled

When you see a Safari® Enabled icon on the cover of your favorite technology book, that means the book is available online through the O'Reilly Network Safari Bookshelf. Safari offers a solution that's better than e-books. It's a virtual library that lets you search thousands of top tech books easily, cut and paste code samples, download chapters, and find quick answers when you need the most accurate, current information. Try it for free at http://safari.oreilly.com.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required