The Scale-3 and Scale-9 Component Auto Shapes are two Auto Shapes created for Macromedia Fireworks 8 that allow developers and designers to create and use scalable components for Fireworks designs. They can consist of solid colors or use bitmap imagery (utilizing patterns) to mimic existing or represent new interface elements which can be scaled by the user without resulting in distortion.
Two Component Auto Shapes were created to facilitate three variations of scalable components.
The Scale-3 Component Auto Shape consists of three "slices" (not to be confused with Fireworks slices used in exporting) which can be arranged vertically or horizontally and can scale either left and right or up and down depending on its orientation. This (3-slice) Auto Shape would be used for objects which can scale in one direction such as a form button or a scroll bar.
The Scale-9 Component Auto Shape consists of nine slices which are arranged in a grid pattern and can be scaled in either a vertical or horizontal direction. This (9-slice) Auto Shape would be used for objects which can also scale in any direction such as text areas or application windows.

To initially create a Scale-3 or Scale-9 Component Auto Shape, you need to drag an instance of either Auto Shape from the Shapes panel in to the current Fireworks document. By default, a Scale-3 Component Auto Shape is created with a horizontal orientation. If you are holding CTRL (or CMD) while inserting a Scale-3 shape, it will be created with a vertical orientation. The shape's top-left corner will be positioned at the location of the mouse (it will not be centered). Presumably you would only be inserting these shapes from the Shapes panel when you wanted to create a new skin for a component (see Creating Your Own Skins). Otherwise, you would be adding a pre-existing component from another source such as importing one from another Fireworks document (see Managing Skin Patterns).
Each of the Scale-3 and Scale-9 Component Auto Shapes have a control point for each slice and an additional control point at the top left corner of the shape for opening the options dialog (see Setting Shape Options). Clicking on the options control point while holding the CTRL (or CMD) key will force the shape to redraw itself.
An additional 4 control points may also be available representing 4 different states for the shape. These states correspond with the 4 states found in buttons, Up, Over, Down, and Over (while) Down (see Working with States). These are made available through the Options dialog.
When working with the Scale-3 and Scale-9 Component Auto Shapes, all shape manipulation should be handled through the slice control points. Corner and edge slice control points allow you to scale the shape as needed. Center (Middle-Center) slices do not provide scaling. As you scale, the shape's overall size will be seen in a tool tip. This size does not include text (see Working With Text). The Auto Shapes should not be scaled or rotated using the transform tool as it can cause the shape to react inappropriately.
If you need to rotate or scale a component Auto Shape, to avoid complications you should first convert the shape into a symbol. Then, as a symbol you can transform the shape without worrying about the consequences of the transformations on the shape's operation.
The graphics and size of each slice is determined by its definition. You define a slice using the Define Slice dialog (see Working With the Define Slice Dialog).
Clicking once on the Options control point opens the Options dialog for both the Scale-3 and Scale-9 Component Auto Shapes. The Options dialog provides information about the shape and access to the shape's options.

Shape options are as follows:
Clicking OK on the dialog will confirm any changes made. Clicking Cancel will ignore them.
Each instance of a Scale-3 or Scale-9 Component Auto Shape includes 4 different states, Up, Over, Down, and Over (while) Down. You can access each state by clicking on their respective control points at the top of the shape. When a control point in the states group is blue, it means that is the current state for the shape. If you do not see the state control points for your shape, you can show them using the Options dialog.
Each state provides the shape with new values for slice contents (color or pattern), pattern offset, pattern rotation, and whether or not the slice pattern stretches to fit the size of the slice (see Working With the Define Slice Dialog). States do not affect slice size nor do they affect text (see Working With Text).
If you hold CTRL (or CMD) while clicking on a state control point, you will be given the option of copying the current state into the selected state.
When you select the option to include text within a Scale-3 or Scale-9 Component Auto Shape from the Options dialog, a new text object is created within the Auto Shape. Neither the Scale-3 or Scale-9 Component Auto Shape provides a means to edit this text; it is expected that you select the text using the Subselection tool in Fireworks and edit it yourself. The Text Editor within Fireworks (Text > Editor) can be a useful tool for easily modifying this text after it is selected.
Additional text objects can be added within the shape using Clone (Edit > Clone) or Duplicate (Edit > Duplicate) while an existing text object in the shape is selected. Each can be placed at your discretion. Their horizontal position within the shape as it is scaled is dependant on the text's alignment. Text that is aligned left or justified will retain its relation to the left edge of the shape. Text which is centered will remain centered in the shape, while right aligned text will retain its relation to the right edge of the shape.
If Include Text is unchecked from the Options dialog, all text objects within the shape will be removed. If re-checked, only the default text is added back into the shape.
Text objects in a Scale-3 or Scale-9 Component Auto Shape are unaffected by states. Text objects also have no affect on the shape size displayed for tool tips while scaling a shape.
The primary usefulness of the Scale-3 and Scale-9 Component Auto Shapes comes in how they can be skinned to match almost any scalable, visual object--in particular, UI (User Interface) elements. To skin a component shape, you would use the Define Slice dialog for each of the slices within the shape (see Working With the Define Slice Dialog).
Skins for the Scale-3 and Scale-9 Component Auto Shapes consist of solid colors or Fireworks patterns. Because patterns are used you can create your entire skin directly within Fireworks. Just export your image(s) and use the Define Slice dialog to apply them to the shape.
The visual properties for each slice in either a Scale-3 or Scale-9 Component Auto Shape are set using the Define Slice dialog. To open this dialog for any slice, click on the slice's control point without dragging the point. If you hold down CTRL (or CMD) when selecting the slice's control point, an additional dialog will appear after the Define Slice dialog asking if you wish to apply your changes to all slices within the shape. If yes is selected, the settings defined in the Define Slice dialog will be applied to all slices. If no is selected, only the selected slice is affected.
Only settings you changed will be copied over to other states.

A preview is also provided showing what your slice will essentially look like. Changes made in the Define Slice dialog will be reflected in the preview area though the preview area only shows 100 square pixels of preview. A slice, though usually not, can be larger than the area provided in the preview. Slice options are as follows:
Clicking OK on the dialog will confirm any changes made. Clicking Cancel will ignore them.
It is important to understand that settings applied to a Scale-3 or Scale-9 Component Auto Shape using the Define Slice dialog cannot be undone. Though the appearance of the shape may revert back to its original as the result of an undo operation, the shape will continue to use the new, undone settings the next time its redrawn.
Skins for Scale-3 and Scale-9 Component Auto Shapes are made with images used as Fireworks patterns. These patterns are set for an individual slice of a shape using the Define Slice dialog (see Working With the Define Slice Dialog). When skinning a shape, consider the following.
Most Scale-3 and Scale-9 Component Auto Shapes can be skinned using a single bitmap pattern instead of using separate patterns for each slice. The only exceptions are Scale-9 shapes that require a pattern to be used for its center slice, in which case 2 are needed. Usually, however, you can get away with using a solid color for the center of Scale-9 shapes.
Because the Define Slice dialog allows you to crop and rotate pattern images, you can use the same image for all graphics used in the Scale-3 Component Auto Shape and all but the center image of the Scale-9 Component Auto Shape. This can easily be done using a column format with each slice graphic used in one image. Just place each consecutive graphic below the one before it making one long column of the graphics required and save it as a pattern (GIF, JPEG, or PNG). Then, in the Define Slice dialog, load the pattern and crop each section of the image as needed for each slice using rotation where necessary for vertical slices like Middle-Left and Middle-Right on a Scale-9 shape. Because a Middle-Center graphic needs to stretch in all directions, it would have to require a separate image if not a solid color. Below is an example of the pattern image used for the Scale-9 dialog window example.
![]()
The magenta here is not required and simply acts as a guide to help when applying the skin; it will ultimately not be seen in the component shape. The Middle-Left and Middle-Right slices would use rotated patterns while the Middle-Center slice would be given a solid color of #D4D0C8.
For slices that scale, if a slice is not set to stretch its pattern, the pattern will be repeated. If that is the case, you will need to make sure the graphics for the slice span the entire width of the pattern image so when the pattern does repeat, it will be seamless.
Though this method of stacking graphics minimizes the number of images used, it can also make skinning a little more difficult. When using separate images, skinning usually only requires that you select the image in the Define dialog's combo box and select OK. Assuming the pattern is recognized by Fireworks (installed in the patterns directory) and the Auto Fit option is selected, the slice will automatically size itself to the size of the pattern image and no more adjusting is required. The only problem with using separate images is that it would require that your Fireworks document have patterns installed for each slice of each separate component shape used in that file.
If you use a tilde (~) at the beginning of your component pattern names, they will be placed a little more unobtrusively at the bottom of your patterns list in Fireworks.
Any pattern available to the current Fireworks document can be used to skin a Scale-3 or Scale-9 Component Auto Shape. Only GIF, JPEG, and PNG patterns (with correct file extension; .gif, .jpg, .jpeg, or .png) installed in the patterns folder of the Fireworks install directory (and were there when Fireworks was launched) will be recognized by the Define Slice dialog and will be automatically given a preview when selected. Ideally these are the patterns you'd want most to be working with. They make skinning your slices much easier providing a faster way to add graphics to your shape. When adding images to the patterns directory, you will need to restart Fireworks to make sure they are recognized by Fireworks as being patterns.
(Windows) C:\Program Files\Macromedia\Fireworks 8\Configuration\Patterns
(Mac OS) Macintosh Hard Drive:Applications:Macromedia:Fireworks 8:Configuration:Patterns
After you are through skinning your components using your skin patterns, you may want to remove them from the patterns directory so that your default pattern selection is not cluttered with component shape skins. Don't worry, this will not affect the appearance of the shapes (see Reusing Skinned Shapes).
If you do not use an installed pattern, a preview cannot be immediately generated and size information about the pattern cannot be determined. For these patterns, you will need to explicitly specify a preview image for the Define Slice dialog using the obtain pattern preview button attached to the top left of the preview box. You would want to load the same pattern used for the slice. Note that only GIF, JPEG, and PNG patterns can be used for the preview. If you do not specify a preview pattern when a pattern has no preview, the pattern could be rendered incorrectly for the shape using a size that does not fit the pattern applied.
If you have a slice that is incorrectly scaling a pattern (because, for example, you did not provide nor have a pattern preview for the pattern), you can fix it by first selecting the slice shape using the subselection tool in Fireworks, then use the arrow tool to get its pattern handles and double click on them. This will reset the size of the pattern to its regular, unaltered size. After having done that, you can update the new pattern size for the slice and redraw the shape by clicking on the options control point while holding the CTRL (or CMD) key.
Once you have skinned a Scale-3 or Scale-9 Component Auto Shape, it cannot be re-added to the Shapes panel for future use. Only un-skinned component shapes can be created from the Shapes panel. To reuse your skinned components, you have two options:
If you add a component shape to a document while running an installation of Fireworks that does not have access to the patterns the shape uses, the shape will still be able to retain its patterns and keep its appearance because of how Fireworks maintains pattern information at the document level. Even if your system might not have a pattern, a Fireworks document will. Transferring an object from one document to another will also transfer all patterns associated with that object. This lets component shapes that have been added as a library item or imported retain their exact graphics. However, in doing this, you may experience difficulties attempting to adjust the skin of a component shape provided you do not have access to the patterns that make it up.
The Scale-3 and Scale-9 Component Auto Shapes, as with all things, may not function entirely correctly. If any bugs are found, let me know at www.senocular.com. Known issues include:
The Scale-3 and Scale-9 Component Auto Shapes were created by Trevor McCauley. For the most up-to-date versions of the Auto Shapes and to find more Auto Shapes and Fireworks extensions, go to www.senocular.com.
Last Updated October 18, 2005