Panels and Toolbars

If you followed the little exercise on A Tour of the Flash Workspace, you know you can put panels and toolbars almost anywhere onscreen. However, if you use the Essentials workspace, you start off with a few frequently used panels and toolbars docked neatly on the right side of the program window.

It's a little easy to get confused by the Flash nomenclature. Flash has toolbars, panels, palettes, and windows. Sometimes collapsed panels look like toolbars and open up when clicked—like the frequently used Tools panel. Toolbars and panels pack the most commonly used options together in a nice compact space, so you don't have to do a hunt-and-peck through the main menu every time you want to do something. Panels are great, but they take up precious real estate. As you work, you can hide certain tools to get a better view of your artwork. (You can always get them back by choosing their names from the Window menu.)

Toolbars and panels are such an integral part of working with Flash that's it's helpful to learn some of their tricks early on:

Note

When you reposition a floating toolbar, Flash remembers where you put it. If, later on, you hide the toolbar—or exit Flash and run it again—your toolbars appear exactly as you left them. If this isn't what you want, use the Workspace Switcher to choose a new workspace layout or to reset the current workspace.

Strictly speaking, Flash has only three toolbars: Main, Controller, and Edit bar. (Everything else is a panel, even if it looks suspiciously like a toolbar.) Figure 1-7 shows all three toolbars.

The Tools panel is unique. For designers, it's probably the most used of all the panels and toolbars. In the Essentials workspace, the Tools panel appears along the right side of the Flash program window. There are no text labels, just a series of icons. However, if you need a hint, just hold your mouse over one of the tools, and a tooltip shows the name of the tool. So, for example, mouse over the arrow at the top of the Tools panel, and the tooltip says "Selection Tool (V)." The letter in parentheses is the shortcut key for that tool. Press the letter V while you're working in Flash, and your cursor changes to the Selection tool.

All animations start with a single drawing. And to draw something in Flash, you need drawing tools: pens, pencils, brushes, colors, erasers, and so on. The Tools panel, shown in Figure 1-8 is where you find Flash's drawing tools. Chapter 2 shows you how to use these tools to create a simple drawing; this section gives you a quick overview of the six sections of the Tools panel, each of which focuses on a slightly different kind of drawing tool or optional feature.

In many ways, the Properties panel is Command Central as you work with your animation, because it gathers all the pertinent details for the objects you work with and displays them in one place. Select an object, and the Properties panel displays all of its properties and settings. It's not just an information provider; you also use the Properties panel to change settings and tweak the elements in your animation. When there's fine-tuning to be done, select an object and adjust the settings in the Properties panel. (You can learn more in the "Test Drive" section on The Flash CS5 Test Drive.)

The Properties panel usually appears when you open a new document. Initially, it shows information about your Flash document, like the stage dimensions and the animation's frame rate. Whenever you select an individual object in your animation, the Properties panel shows that object's details. For example, if you select a text field, the Properties panel lists the typeface, font size, and text color. You also see information on the paragraph settings, like the margins and line spacing. Because the Properties panel crams so many details into one place, you'll find yourself using the collapse and expand buttons to show and hide some of the information in its subpanels, as shown in Figure 1-10.

The Library panel (Figure 1-11) is a place to store objects you want to use more than once. Let's say, for example, that you create a picture-perfect bubble, sun, or snowflake in one frame of your animation. (You'll learn more about frames on Frame-by-Frame Animation.) Now, if you want that bubble, sun, or snowflake to appear in 15 additional frames, you could draw it again and again, but it really makes more sense to store a copy in the current project library and then just drag it to where it's needed on those other 15 frames. This trick saves time and ensures consistency to boot. The Library panel has quite a few other important tricks, and you'll learn more about it on Symbols and Instances. To show the Library panel, click Window→Library or press Ctrl+L (Windows) or ⌘-L (Mac).

As you can see from the examples on the preceding pages, each Flash panel performs specific functions, and most of them deserve several pages to describe them fully, as you'll find throughout this book. For now, here's a table that gives a thumbnail description and notes the page where the panel is described in detail. If you're eager to get started actually using Flash, jump to The Flash CS5 Test Drive to start the Flash CS5 Test Drive.

Table 1-1. Flash Panels and their uses (in order as they appear on the Window menu)

Panel Name

Keyboard Shortcut

Purpose

Timeline

Windows: Ctrl+Alt+K Mac: Option-⌘-T

Technically, the timeline is just another panel. You can move, hide, expand, and collapse the timeline just as you would any other panel. See Frame-by-Frame Animation for more.

Motion Editor

 

A powerful tool used to create and control animation effects. See A Tour of the Motion Editor for more.

Tools

Windows: Ctrl+F2 Mac: ⌘-F2

Perhaps the most frequently used panel of them all—it holds drawing, selecting, and coloring tools. The Tools panel also includes specialized tools like the IK Bones tools and the 3D Rotation tool. See Using Merge Mode and Object Mode Together for more.

Properties

Windows: Ctrl+F3 Mac: ⌘-F3

Everything that appears on the stage has properties that define its appearance or characteristics. Even the stage has properties, like width, height, and background color. You can review and edit an object's properties in the Properties panel. See Options tools for more.

Library

Windows: Ctrl+L Mac: ⌘-L

Holds graphics, symbols, and entire movies that you want to reuse. See Symbols and Instances for more.

Common Libraries

 

When you want to share buttons, classes, or sounds among several different Flash documents, use the common libraries. That way, they'll be available to all your projects. See the tip on Tip for more.

Motion Presets

 

Serves up dozens of predesigned animations. See Applying Motion Presets for more.

Actions

Windows: F9 Mac: Option-F9

You use this panel to write ActionScript code. The Actions panel provides a window for code, a reference tool for the programming language, and a visual display for the object-oriented nature of the code. See Writing ActionScript Code in the Timeline for more.

Code Snippets

 

Contains predesigned chunks of code—someone else sweated the details so you don't have to. Specific bits of code perform timeline tricks, load or unload graphics, handle audiovisual tasks, and program buttons. See the box on Create an Event Handler in a Snap for more.

Behaviors

Windows: Shift+F3 Mac: Shift-F3

The earlier version of ActionScript (version 2.0) uses this panel to provide predesigned bits of code.

Compiler Errors

Windows: Alt-F2 Mac: Option-F2

Here's where you troubleshoot ActionScript code. Messages explain the location of an error and provide hints as to what went wrong. See Finding Errors with the Compiler Errors Panel for more.

Debug Panels

 

Additional panels to help you find errors in your ActionScript programs. See Analyzing Code with the Debugger for more.

Movie Explorer

Windows: Alt+F3 Mac: Option-F3

Helps you examine the elements in your Flash animation, including separate scenes if you've created them. The display uses a tree structure to show the relationship of the elements.

Output

Windows: F2 Mac: F2

Another place to debug ActionScript programs. The Output panel is used to display text messages at certain points as a program runs. See Using the Output Panel and trace() Statement for more.

Align

Windows: Ctrl+K Mac: ⌘-K

Lets you align and arrange graphic elements on the stage. See Aligning Objects with the Align Tools for more.

Color

Windows: Shift+F9 Mac: Shift-F9

Lets you select and apply colors to graphic elements. See Advanced Color and Fills for more.

Info

Windows: Ctrl+I Mac: ⌘-I

A text panel that provides details about objects, like their location and dimensions. The Info panel also keeps track of the cursor location and the color immediately under the cursor. See Making It Move with Motion Tweens for more.

Swatches

Windows: Ctrl+F9 Mac: ⌘-F9

A panel of colors and gradients that can be applied to graphic elements. You can create your own swatches for colors you want to reuse. See Saving Color Swatches for more.

Transform

Windows: Ctrl+T Mac: ⌘-T

Used to change the size, shape, and position of graphic elements on the stage. You can even use the Transform panel to reposition or rotate objects in 3-D space. See Pasting graphics for more.

Components

Windows: Ctrl+F7 Mac: ⌘-F7

Holds predesigned components you can use in your Flash projects. You'll find user interface components like buttons and checkboxes, components that can be used to create data tables, and components used to control movie and sound players. See Reversing Frames in the Timeline for more.

Component Inspector

Windows: Shift+F7 Mac: Shift-F7

Flash CS5 displays component properties in the Properties panel. Earlier versions of Flash used the Component Inspector. This panel is available for compatibility with older animations. See the box on Learning the Parameters for more.

Accessibility (under Other Panels)

Windows: Shift+F11 Mac: Shift-F11

To make sure vision- and hearing-impaired folks can enjoy the animations you create using Flash, use the tools provided in the Accessibility panel.

History (under Other Panels)

Windows: Ctrl+F10 Mac: ⌘-F10

Flash keeps track of every little thing you do to a file, starting with the time you created it (or the last time you opened it). Use the History panel when you want to backtrack or undo your work. You can also use the History panel to save a series of commands you want to reuse later.

Scene (under Other Panels)

Windows: Shift+F2 Mac: Shift-F2

You can break long Flash animations into separate scenes. This panel helps you organize and manage your scenes. See Working with Scenes for more.

Strings (under Other Panels)

Windows: Ctrl+F11 Mac: ⌘-F11

Need to create an animation or application that works in different languages? Using the Strings panel, you can create and manage multi-language versions of the text. (This book doesn't cover multi-language Flash.)

Web Services (under Other Panels)

Windows: Ctrl+Shift+F10 Mac: Shift-⌘-F10

Used only with ActionScript 2.0 projects that connect to the Internet. (This book doesn't cover ActionScript 2.0.)

Project (under Other Panels)

 

Used when working with a team where responsibilities are divided among several people.