When it comes to designing application prototypes, or for creating simple icons, background shapes, panels, and buttons, you’ll find everything you need right here in Flash Catalyst.
If you have a copy of Adobe Photoshop CS5 or Adobe Illustrator CS5 installed, you can also take advantage of the Flash Catalyst integrated round-trip editing features. Select the artwork you want to edit, launch Illustrator or Photoshop, and then return the edited artwork to Flash Catalyst. The artwork maintains its exact location in the application.
In this lesson, you’ll learn how to do the following:
• Use the rulers, guides, and grid
• Draw basic shapes and lines
• Change stroke and fill settings
• Add and modify gradient fills
• Group and position objects
• Apply and remove filters
• Launch and edit using Photoshop CS5 and Illustrator CS5
This lesson will take about 90 minutes to complete. Copy the Lesson11 folder into the lessons folder that you created on your hard drive for these projects (or create it now), if you haven’t already done so. As you work on this lesson, you won’t be preserving the start files; if you need to restore the start files, copy them from the Adobe Flash Catalyst CS5 Classroom in a Book CD.
The shapes you create with the drawing tools are vector graphics. Text in Flash Catalyst is also a vector, but you’ll be focusing on shapes in this exercise.
Some tools share the same location in the Tools panel. To select a hidden tool, click and hold down the mouse button to open the pop-up menu and then select a tool.
Select (dark arrow): Select, move, and size grouped or ungrouped objects.
Direct Select (light arrow): Select, move, and size objects that are part of a group.
Transform (Rotation): Size and rotate grouped and ungrouped objects.
Text: Dragging creates text that is confined within the box you drew, while clicking to place an insertion point creates text that can grow indefinitely in width as you type.
Rectangle: Drag to draw rectangles. Hold down Shift to draw a perfect square.
Rounded Rectangle: Drag to draw a rectangle with rounded corners. Hold down Shift to draw squares with rounded corners.
Ellipse: Drag to draw an ellipse. Hold down Shift to draw a perfect circle.
Triangle: Drag to draw a triangle. Move the mouse to the right or left to rotate the shape as you draw. Hold down Shift to rotate the triangle at 45-degree increments as you draw.
Hexagon: Drag to draw a hexagon. Move the mouse to the right or left to rotate the shape as you draw.
Octagon: Drag to draw an octagon. Move the mouse to the right or left to rotate the shape as you draw.
Star: Drag to draw a five-point star. Move the mouse to the right or left to rotate the shape as you draw.
Line: Drag to draw a straight line. Move the mouse to the right or left to rotate the line as you draw. Hold down Shift to rotate the line at 45-degree increments as you draw.
Hand: Drag to pan the artboard. This is a fast way of scrolling left and right in the artboard.
Zoom: Click in the artboard to zoom in for a closer view. Alt/Option-click to zoom back out. The zoom tool is synchronized with the Zoom Magnification box above the artboard.
Flash Catalyst offers four main aids to assist you while drawing. These include the rulers, the custom guides, a visible grid for measuring and aligning artwork, and the Properties panel for positioning and sizing objects down to the exact pixel.
By default, rulers appear above and to the left of the artboard. The rulers help you position artwork, but they’re even more useful when placing custom guides. You can hide the rulers to gain a little extra room in the workspace, but they take up so little space you’ll probably want to leave them turned on all the time.
Rulers appear above and to the left of the artboard in the Design workspace.
The rulers disappear, creating a little more space above and to the left of the artboard.
Rulers measure the height and width of the artboard in pixels. At 100% magnification, tick marks appear every 10 pixels and numbers appear at 100-pixel intervals.
As you zoom in or out, the tick marks and numbers in the ruler scale to accommodate the new magnification.
Using the grid is similar to placing a transparent sheet of graph paper over the artboard. The grid includes perfectly spaced vertical and horizontal lines that help you align and draw perfectly measured artwork. You can change the default settings for all grid lines and guides in one location—the Grid & Guide Settings dialog box.
The Grid submenu appears. You can show and hide the grid or turn the Snap To Grid feature on and off. Selecting Snap To Grid causes objects to snap tightly up against the nearest gridline when you position them in the artboard.
The Guides submenu appears. You can show and hide the guides, lock the guides in place, turn the Snap To Guides feature on and off, or clear all guides from the application.
The Grid & Guide Settings dialog box appears. You can change the color, opacity, and style (straight dotted lines) for the grid and guides. You can adjust the scale of the grid by changing the Width and Height values. The default is a 20 × 20 pixel grid. You can show or hide the grid and guides or turn snapping on and off. You can also lock and unlock the guide lines.
Reducing the opacity to 50% makes the grid lines less distracting as you draw new shapes and lines.
The grid appears at 50% opacity in the artboard.
Guides are another great tool for aligning and placing one or more objects in the artboard. Unlike the grid, you can place horizontal or vertical guides anywhere you want. Use the ruler for exact placement of your custom guides. The same guides persist across all pages in the application.
The guides you set for the main pages in the application do not appear when you edit a component in Edit-In-Place mode. When a component is in Edit-In-Place mode, you can place new guides that are unique to that component.
Using guides, you’ve created boundaries for a 400 × 300 panel that you’re going to draw using basic shapes and lines.
Locking the guides prevents them from being accidentally moved when selecting and positioning objects in the artboard.
For most designers, using the Flash Catalyst drawing tools is a cinch. For anyone new to vector drawing tools, you’ll find the best way to master them is to practice. A little experimentation, combined with the Undo command, goes a long way.
In this exercise, you are going to draw a simple user interface panel. Before you get started, take a look at a sample of the finished panel.
Here is an example of a simple control panel that was created using basic shapes and lines. You are going to create a similar panel using the Flash Catalyst drawing tools.
You can draw rectangles with square or rounded corners. There are two ways to create a rounded rectangle. You can use the Rounded Rectangle tool, or you can draw a standard rectangle using the Rectangle tool and then adjust the Corners value in the Properties panel.
As you draw, the edges of the shape snap to the guides.
In the Common section of the Properties panel, you see the properties for the rectangle. The width (W) is 400 and the height (H) is 300. If it’s not, then adjust it in the Properties panel.
The guides make it easy to draw, but difficult to see the result in the artboard.
The Panel Background now has rounded corners.
Now let’s draw a track for the panel scroll bar.
OK, so technically you’ve already drawn some rounded rectangles using the Rectangle tool and the Properties panel. But the Rounded Rectangle tool provides a shortcut by adding rounded corners automatically.
By default, the corner radius is 10, which is fine for the scroll bar track.
Next, we’ll draw a thumb for the scroll bar.
You now have five rectangles that make up the shapes you need to build the panel. You’re going to add some style and position these elements in a moment, but first you’ll create some shapes for the panel close button.
To create a close button for the panel, let’s start by drawing a large circle. We’ll make it big at first and then scale it down later. To draw a perfect circle, use the Ellipse tool with the Shift key modifier.
The ellipse is a perfect circle.
The close button should have an X in the middle. Let’s use the grid to draw a perfect plus sign, and then we’ll rotate the entire button to turn the plus sign into an X.
You now have the basic shapes for the panel close button. You’ll rotate this in a moment.
If drawing basic shapes is like making a coloring book, then changing fill and stroke is the fun part. You get to color in the pictures. Flash Catalyst lets you choose between no fill (transparent), solid fill, and gradients that fade between one or more colors at various angles. Even the stroke (outline) can be a gradient if it has enough weight. Weight refers to the width or thickness of the stroke. All of these changes are made in the Common section of the Properties panel.
When you first start Flash Catalyst, new shapes are created with a solid white fill. But as soon as you change the fill color of a shape, any new shape that you draw takes on the most recent fill color that you’ve applied.
The properties for the selected shape appear in the Properties panel. The fill color is solid white.
In the Color Picker, you can select a color in the palette or enter a hexadecimal color value. For additional colors, drag the slider (right-pointing arrow) up or down to select a new color range and then drag in the color field to select a new color. You can also sample a color in the application by using the Eyedropper tool.
Shift-click to select multiple objects in the artboard, or contiguous rows in the Layers panel. But Ctrl/Command-click to select noncontiguous rows in the Layers panel.
With Header Overlay and Thumb selected, you can apply the same properties to both shapes at the same time.
The Color Picker disappears and the blue color you sampled is applied to the Header Overlay and Thumb shapes.
The scroll bar track and the Ellipse are light gray.
Stroke is the line or outline that defines a shape you draw in Flash Catalyst—as in the “stroke of the pen” or “brush strokes.” In Flash Catalyst, you can choose a solid stroke, a gradient stroke, or no stroke at all.
A gradient is when two or more colors gradually blend together. A gradient stroke may seem strange, but if you make the weight of the stroke heavy enough, it becomes almost like an outer shape surrounding an inner shape.
Our panel design doesn’t require any fancy gradient strokes, but we do need to make a few minor modifications, beginning with the panel background.
Let’s add a gradient fill to the Panel Header and the Header Overlay. Then, we’ll place the overlay on top of the header to hide the bottom rounded corners.
A gradient swatch displays a preview of the gradient from left to right. Beneath the swatch are gradient color stops. They’re called stops because they control where one color stops and the next one begins.
By default, there are two color stops. The first stop is the current shape’s fill color (blue). The last stop is black. The artboard shows a gradient fade from blue to black.
A new color stop takes on the color of the stop to its left.
You can change the color and the opacity of each color stop.
The new stop color is white. In the artboard, the fill color fades from blue to white and then to black.
You can add more color stops. You can also move the first and last stops to adjust where the fades begin and end.
You’re back to where you started, with a blue and black color stop.
The gradient fades from blue to black at an angle, making it a little more interesting.
The same blue to black gradient is added to the Header Overlay rectangle.
The combined shapes make a panel header that’s square on the bottom with rounded top corners. The shapes are different sizes so the gradient rotation creates a seam. To hide the seam, you can change the Rotation value for one of the shapes until the gradient patterns line up perfectly.
The gradient patterns line up and the seam is gone.
Most artwork is made from a collection of smaller overlapping parts. In fact, some artwork includes hundreds, even thousands, of smaller brush strokes or paths. You can make your life a little easier by grouping the related parts of an object so that you can work with them as a single unit.
The following are a few benefits of grouping objects:
• Grouping protects the integrity of the drawing by keeping its parts in their correct position relative to its other parts.
• Grouping creates a nicely organized Group object in the Layers panel. You can rename the group in the Layers panel for better organization.
If your drawings include lots of smaller parts or paths, you can group them, select the group, and use the Heads-Up Display (HUD) to create an optimized graphic.
• Grouped objects have their own set of properties in the Properties panel, which makes it easier to size, position, and transform the drawing. For example, you can change its opacity, rotate the drawing, or apply filters.
• You can use the Select tool to select, transform, size, and position the group as a single unit.
• You can always select the parts within a group by using the Direct Select tool, or by selecting their individual rows in the Layers panel.
The panel you’re creating includes the rounded Panel Header and Header Overlay rectangles. You’ve already aligned these objects perfectly, so let’s go ahead and group them. That’ll make it easier to position them at the top of the panel. While we’re at it, let’s also group the ellipse and lines used to make the close button. This will make rotating, sizing, and positioning these parts a lot easier too.
The two gradient rectangles are grouped and share one set of selection handles.
Let’s use the Transform tool to rotate the close button and turn the plus sign into an X for “close.”
Transform handles appear around the group.
The pointer changes to the Transform tool.
The Rotation value changes in the Properties panel.
With our shapes grouped, we can move and size them as single drawings. Let’s start by putting the header at the top of the panel, just inside the outline of the panel background. After that, we’ll reduce the size of the close button and place it where it belongs, at the top of the panel.
Flash Catalyst includes a nice collection of graphic filters, such as drop shadows, that you can add to your artwork to give it more depth and style. You can add filters to the artwork you place in the Flash Catalyst artboard. For example, you can apply filters to the vector drawings and bitmap images you import to the project, as well as to the vector shapes you create using the Flash Catalyst drawing tools. You can even add filters to text.
You can apply the following filters in the Properties panel: Blur, Drop Shadow, Inner Shadow, Bevel, Glow, and Inner Glow.
After you apply a filter, additional filter settings appear in the Properties panel.
If an object has different filters applied in two states, you cannot animate the change between filters during transitions. The change occurs immediately during the transition.
A bevel filter creates a raised, or beveled, edge, giving the object the appearance of depth. By adding bevel filters to the close button and the scroll bar thumb, we can create the illusion of three-dimensional objects.
A bevel is applied to the selection. The filter properties appear in the Properties panel.
The most common type of filter is the drop shadow. Using drop shadows adds style and depth and gives a softer look to artwork and text. By adjusting the direction and distance of the shadow, you create the perception of lighting.
Adding a shadow to the Panel Background rectangle will give it the appearance that it’s floating slightly above the main user interface.
A drop shadow is applied to the selection. The filter properties appear in the Properties panel.
The Knockout Drop Shadow property hides the original object, but it shows only the parts of the filter that would be seen if the object were visible (the filter is masked/knocked out by the object). Hide Object hides the original object and shows the filter, including parts that would have been obscured if the object were visible. This has no effect if Knockout is also selected.
The panel is complete.
Using the Launch and Edit features of Flash Catalyst, you can modify artwork using the rich editing capabilities of Adobe Illustrator CS5 and Adobe Photoshop CS5. Open the artwork in Illustrator or Photoshop, make changes, and then return to Flash Catalyst.
Take a moment to review the following tips for round-trip editing with Illustrator and Photoshop:
• Use Illustrator to round-trip edit bitmaps and vectors.
• Use Photoshop to round-trip edit bitmaps.
• When you edit a vector (shape or text) in Illustrator and the vector is not part of a component, changes apply only to the state in which you select and edit the vector. If the vector was shared to other states, they are not affected by the edit.
• When you edit an image or component that is stored in the Flash Catalyst library, you are editing the object definition in the library. If you’ve shared the image across states, the changes apply in all states. If the image is used inside a component, the changes are reflected in the component.
• You cannot round-trip edit vectors or bitmaps that you’ve optimized by choosing Optimize Vector Graphics in the HUD.
• You cannot round-trip edit more than one component at a time.
• Make all structural changes to objects in Flash Catalyst. Changing the structure of objects during round-trip editing can break the intended behavior of objects or transitions in which they occur.
• When you round-trip edit a button (or other components), the component states are shown as separate layers in Illustrator and Photoshop. If you round-trip edit a group, its children are shown as separate layers.
• When you round-trip edit an object, the surrounding objects in the artboard are visible (but dimmed) for reference. These objects appear as locked background layers in Illustrator and Photoshop and cannot be edited.
Using Illustrator, you can edit drawings, as well as the following components: Button, Checkbox, Radio Button, Horizontal Scrollbar, Vertical Scrollbar, Text Input, Toggle Button, Horizontal Slider, or Vertical Slider. You cannot round-trip edit Custom/Generic components.
To complete this exercise, you must have Adobe Illustrator CS5 installed.
This page includes a sample drawing of a wrench that was created using basic shapes. This would look better if the wrench handle tapered inward a little near the head of the wrench. To do this, you need to edit the anchor points of the handle shape, which cannot be done in Flash Catalyst. To make this change, you can launch Adobe Illustrator CS5 and edit the path using the Adobe Illustrator Pen tool. The shapes that make up the wrench are grouped.
Adobe Illustrator CS5 starts, and the shape you selected appears in the Illustrator artboard. This is similar to Edit-In-Place mode in Flash Catalyst. Only the selected artwork can be edited. The other artwork appears in the background for reference only.
A message at the top of the Illustrator window tells you that you are editing from Adobe Flash Catalyst.
Handles appear. You can modify points on a path in Illustrator.
The wrench handle now gets narrower near the top of the wrench.
The FXG Options dialog box appears.
The changes you made in Illustrator appear in Flash Catalyst.
Before you can take advantage of round-trip editing with Adobe Photoshop, you need to download and install the FXG extensions. These include the FXG plug-in and the Simplify Layers For FXG script.
Instructions for downloading and installing the extensions are located at www.adobe.com/go/photoshopfxg.
Use Photoshop to edit bitmap images, a selection of multiple images, or a group containing only images.
To complete this exercise, you must have Adobe Photoshop CS5 installed.
A message reminds you that you need to download and install the FXG extensions for Photoshop.
Adobe Photoshop CS5 starts, and the bitmap image you selected appears in the Photoshop canvas for editing. A message at the top of the canvas reminds you to run the script to simplify layers before returning to Flash Catalyst.
The changes you made in Photoshop appear in the Flash Catalyst project.
1 What is the difference between the Select tool (dark arrow) and the Direct Select tool (light arrow)?
2 What are two methods for drawing rectangles with rounded corners?
3 When filling a shape with a solid color, how can you ensure that its color is an exact match to the color of another object in the artboard?
4 How do you control the colors used in a gradient fill?
5 What are some advantages of grouping objects?
6 When applying a Drop Shadow filter, what is the difference between the Knockout and Hide Object properties?
7 What are some differences between round-trip editing in Adobe Illustrator compared to round-trip editing in Adobe Photoshop?
1 You can use the Select tool to select, move, and size grouped or ungrouped objects. You can use the Direct Select tool to select, move, and size objects that are part of a group.
2 You can draw a rectangle using the Rectangle tool and then add rounded corners by changing the Corners value in the Properties panel. You can draw a rectangle that begins with rounded corners by using the Rounded Rectangle tool.
3 You can use the Eyedropper tool to sample a color from another object in the artboard. Or, you can select the object that has the source color, open the Fill Color Picker, and copy the color’s hexadecimal color value. Then, select the target object, open the Color Picker, and paste the color value. Using the Eyedropper is a lot easier.
4 Begin by adding a gradient fill in the Properties panel. The gradient begins with two colors—usually the fill color fading to black or white. Click a color stop below the gradient swatch to open the Color Picker and change its color. Click in the gradient swatch to add additional color stops. Slide color stops or adjust the Rotation value to stylize the gradient pattern. Drag stops away from the gradient swatch to remove them.
5 Grouping protects the integrity of the drawing by keeping its parts in their correct position relative to its other parts. Grouping creates a nicely organized Group object in the Layers panel. Grouped objects have their own set of properties. You can select, edit, size, and position the group as a single unit. You can add interactions to groups.
6 Knockout hides the original object, but it shows only the parts of the filter that would be seen if the object were visible (the filter is masked/knocked out by the object). Hide Object hides the original object and shows the filter, including parts that would have been obscured if the object were visible. This has no effect if Knockout is also selected.
7 You can use Illustrator to edit vectors and bitmaps. You can use Photoshop to edit bitmaps only. Before you can edit in Photoshop, you must download and install the FXG plug-in and the Simplify Layers For FXG script. After editing in Photoshop, make sure you run the Simplify Layers For FXG script before returning the edited graphic to Flash Catalyst.