Free Transform Commands and Options


The commands we have looked at so far in this chapter are generally used for localized modification of lines or fills. In this section, we introduce some commands that are applied to create more dramatic change of whole items or even groups of items.

You can apply the basic transform commands to any element in the Flash authoring environment, but it is important to know that any transformations applied to symbols, groups, Drawing Objects, or text blocks are saved in the Info panel even if they are unselected and then reselected later. This enables you to easily revert these items to their original appearance. The transform settings for primitive shapes, on the other hand, are reset to the default values in the Info panel as soon as they are deselected. This means that while a primitive shape is actively being modified, you can revert to the original appearance, but as soon as you apply a change and deselect the shape, its modified appearance will be considered original the next time you select it.

As shown in Figure 9-24, there are various ways to access the transform commands available in Flash.

image from book
Figure 9-24: The various ways to access transform commands in Flash — the Transform panel (lower-left), the Modify Transform submenu (center), and the Free Transform tool (right).

The Transform Panel

The Transform panel (Ctrl+T or z+T) includes value fields for horizontal and vertical scale percentages, degrees of rotation, and degrees of vertical and horizontal skew. You can use these fields for visual reference or as a way to enter precise transform values. The Transform panel also includes two important buttons.

image from book
The Copy and Apply Transform button is used to duplicate the selected item with all transformations included. When you select this button, you may not notice that anything has happened to your selected item — this is because Flash places the duplicate exactly on top of the original. To see both the original and the duplicate, drag the duplicate to a new position in the Document window.

image from book
The Reset button will revert a transformed symbol, group, or text field to its original appearance and return all values in the Transform panel to the default settings. You can also achieve this by choosing Modify ð Transform ð Remove Transform. If you only want to remove the most recently applied modification, use Edit ð Undo (Ctrl+Z or z+Z).

The Modify Transform Menu

The commands found in the application menu under Modify ð Transform make it possible to choose specific combinations of transform options as well as a couple of "shortcuts" for commonly needed modifications. Special note should be taken of the two commands that are unique to the application menu:

  • Rotate 90 degrees CW or Rotate 90 degrees CCW: Used to rotate any selected items by a half-turn in the chosen direction (clockwise or counterclockwise) around the central axis point of the selection.

    Tip 

    You can also use shortcut keys to rotate any selected item in 90-degree increments. To rotate an item 90-degrees clockwise, use Shift+Ctrl+9 or Shift+z+9. To rotate an item 90-degrees counterclockwise, use Shift+Ctrl+7 or Shift+z+7.

  • Flip Vertical or Flip Horizontal: Used to place the item in a mirrored position either on the vertical axis (calendar flip) or the horizontal axis (book flip).

The Free Transform Tool

The Free Transform tool (Q), available directly from the Tools panel, enables you to apply transform commands dynamically with various arrow icons. These icons appear as you move the pointer over the control points or handles of the selected item. You can also invoke various transform states from the contextual menu. Although the position of these arrow icons can vary with the position of the pointer, they provide a consistent indication of what transformation will be applied from the closest available handle. To finish any transformation, simply deselect the item by clicking outside of the current selection area.

  • image from book
    Move arrow: This familiar arrow indicates that all currently selected items can be dragged together to a new location in the Document window.

  • image from book
    Axis point or transformation point: By default, this circle marks the center of shapes as the axis for most transformations or animation. On symbols, the axis point is in the top-left corner or at axis 0,0. By dragging the point to a different location, you can define a new axis or transformation point for modifications applied to the item. To return the axis point to its default location, double-click the axis point icon.

    Note 

    In Flash, the axis point of symbols is in the top-left corner by default because it is easier to modify an item mathematically if the origin point is 0,0. However, this means that symbols cannot be scaled towards the top or to the left, unless the axis point is first adjusted. Move the axis point to the center of the symbol to enable transformation in all directions. Shapes can be scaled in any direction, and the scale will always originate from the side opposite the handle that is selected.

  • image from book
    Skew arrow: This arrow is generally available on any side of an item between transformation points. By clicking and dragging the outline, you can skew the shape in either direction indicated by the arrows.

  • image from book
    Rotate arrow: This arrow is generally available near any corner of an item. By clicking and dragging, you can rotate the item clockwise or counterclockwise around the transform axis. Note that if you move the arrow directly over the closest corner handle, the Rotate arrow will usually be replaced with the Scale Corner arrow. To rotate around the opposite corner point without moving the axis point, press the Alt (Option) key while dragging. To constrain rotation to 45-degree increments, press the Shift key while dragging.

  • image from book
    Scale Side arrow: This arrow is available from any handle on the side of an item. Clicking and dragging will scale the item larger or smaller, in one direction only, relative to the transform axis.

  • image from book
    Scale Corner arrow: This arrow appears only on the corner handles of an item and is used to evenly scale the item larger or smaller, in all directions from the transform axis. To constrain the aspect ratio of the shape, press the Shift key while dragging.

Transforming Shapes, Symbols, Text, and Groups

Figure 9-25 shows how a symbol and a shape display differently after they have been modified, deselected, and then reselected with the Free Transform tool. The symbol (left) displays transform handles that are aligned with the originally modified item and the values of the transformation settings are preserved in the Transform panel. The shape (right), however, displays transform handles aligned to default values unrelated to the original modifications, and the values in the Transform panel are also reset to their defaults.

image from book
Figure 9-25: The Free Transform handles and Transform panel settings displayed for a symbol (left) and for a shape (right) that have been reselected after an initial modification

Free Transform Limit Options

The first two options in the Tools panel for the Free Transform tool are toggles to limit the modifications that can be applied to a selected item. It can sometimes be easier to use the Free Transform tool with more specific behavior. When the Rotate and Skew button or the Scale button is toggled on, they will exclude all other modifications.

image from book
The Rotate and Skew toggle protects the selected item from being scaled accidentally while you're rotating or skewing it. This Tools panel option is equivalent to choosing Modify ð Transform ð Rotate and Skew from the application menu.

image from book
The Scale toggle protects the selected item from all other transformations while it is being sized larger or smaller. This Tools panel option is equivalent to choosing Modify ð Transform ð Scale from the application menu.

Free Transform Special Shape Options

The last two options in the Tools panel for the Free Transform tool — Distort and Envelope — are not available for symbols, groups, or text fields. However, when you're transforming primitive shapes or Drawing Objects, you can use these two options to create complex modifications not easily achieved using other Flash tools.

Note 

Remember that you can access the primitive shapes in a group or symbol by entering Edit mode. It is also possible to convert text fields into primitive shapes by applying the Break apart command (twice).

image from book
Distort works by widening or narrowing the sides of the item, or stretching out the corners. This transform option does not bend or warp the shape; it allows sides of the shape to be scaled individually. To apply Distort, first select a shape with the Free Transform tool in the Tools panel, and turn on the Distort toggle in the Options area of the Tools panel. You will then be able to click and drag handles on the sides or corners of the item to stretch or compress individual sides. This is equivalent to selecting a shape with the Selection tool and choosing Modify ð Transform ð Distort from the application menu or selecting Distort from the contextual menu.

Tip 

You can also apply the Distort option to a shape that has been selected with the Free Transform tool by pressing the Control (z) key while dragging a side or corner handle. To taper a shape or move two adjoining corner points an equal distance simultaneously, press the Shift key while dragging any corner handle with the Free Transform tool.

Figure 9-26 shows an original shape being modified with the Distort option (left), and the final shape with distort handles, as they appear when the shape is reselected (right).

image from book
Figure 9-26: Free Transform applied to a shape using the Distort option

image from book
The Envelope option for the Free Transform tool may be one of the most engaging transform methods available in Flash. Once you try it, you may be stretching, squashing, bending, and warping for hours. On the other hand, as you get used to working with this nifty little option, you will find it faster than ever to create unique shapes.

The Envelope option enables you to work with control points and handles much the same way you would when editing lines or shapes using the Subselection tool. The powerful difference is that the Envelope can wrap around the outside of multiple items so that the control points and handles will curve, scale, stretch, or warp all of the lines and shapes contained within the Envelope selection.

To apply the Envelope, first select a shape or multiple shapes with the Free Transform tool and then toggle on the Envelope option in the Tools panel. The Envelope offers a series of control points and tangent handles. The square points are used to scale and skew the shape(s), whereas the round points are actually handles used to control the curve and warp of the shape(s). You can also access the Envelope option by selecting the shapes you want to transform and choosing Modify ð Transform ð Envelope from the application menu, or selecting Envelope from the contextual menu.

Figure 9-27 shows an original shape being modified with the Envelope option (left), and the final shape with Envelope handles, as they appear when the shape is reselected (right).

image from book
Figure 9-27: Free Transform applied to a shape using the Envelope option




Macromedia Flash 8 Bible
Macromedia Flash8 Bible
ISBN: 0471746762
EAN: 2147483647
Year: 2006
Pages: 395

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net