|
|
Name slices
Slicing cuts an image into pieces. Because each piece of
a state is exported separately, each must have a unique name. Use
the default naming convention or assign custom names.
Note: Do not add a file extension to the base name.
Fireworks automatically adds file extensions to slice files upon
export.
Enter a custom slice name Do one of the following: Select the
slice on the canvas, enter a name in the Object Name box in the Property
inspector, and press Enter.
Double-click
the name of the slice in the Web Layer, enter a new name, and press
Enter.
Auto-name a slice file When you export your sliced image, enter a name
in the File Name (Windows) or Name (Mac OS) text box in the Export
dialog box. Do not add a file extension.
Change the default auto-naming conventionYou can create a naming convention that contains up to
eight elements. An element can consist of any of the following auto-naming
options:
Option
|
Description
|
None
|
No name is applied to the element.
|
doc.name
|
The element takes the name of the document.
|
"slice"
|
You can insert the word “slice” into the
naming convention.
|
Slice # (1,2,3...)
Slice # (01,02,03...)
Slice
# (A,B,C...)
Slice # (a,b,c...)
|
The element is labeled numerically or alphabetically,
according to the style you select.
|
row/column (r3_c2, r4_c7...)
|
Row (r##) and Col (c##) designate the rows
and columns of the table that web browsers use to reconstruct a
sliced image. You can use this information in the naming convention.
|
Underscore
Period
Space
Hyphen
|
The element uses any of these characters
typically as separators between other elements.
|
For example, if the document name is mydoc, the naming convention
doc.name + “slice”+ Slice # (A,B,C...) results in a slice called
mydocsliceA.
If a slice has more than one state, by default Fireworks adds
a number to each state's file. For example, if you enter the custom
slice filename home for a three-state button, then Fireworks
names the Up state graphic home.gif, the Over state graphic home_f2.gif,
and the Down state graphic home_f3.gif. You can create your own
naming convention for multistate slices using the HTML Setup dialog box.
Select File > HTML Setup
to open the HTML Setup dialog box.
Click the Document Specific tab.
In the File Names section, create your new naming convention
by selecting from the lists.
(Optional) To set this information as the default for all
new Fireworks documents, click Set Defaults.
Note: Use
caution when selecting None as a menu option for slice auto-naming. If
you select None as the option for any of the first three menus,
Fireworks exports slice files that overwrite one another, resulting
in a single exported graphic and a table that displays this graphic
in every cell.
|