User Guide
HTML export objects 71
Slices object
Slices is an object that has some properties and is also a two-dimensional array of SliceInfo objects
(see “SliceInfo object” on page 69). For example,
Slices[0][0] is the slice information for the
first cell at row 0, column 0. The first array is rows; the second is columns.
The following example shows a common way to access the table:
var curRow;
var curCol;
for (curRow = 0; curRow<slices.numRows; curRow++) {
for (curCol=0; curCol<slices.numColumns; curCol++) {
var curSlice = slices[curRow][curCol]; // curSlice is the slice info
for the cell at this row &
column.
// do whatever processing with curSlice.
}
}
setFrameFileName (frameIndex)
zero-based index Sets the filename for the slice on the
specified frame, without directory or
extension information. You can stop an
image from being exported by setting its
name to
"" (an empty string).
skipCell
Boolean Set to true if this cell in the table is covered
by a previous row span or column span.
tableAlign
string The table alignment for the table in the
current cell.
tableBorder
integer The table’s border width.
tablePadding
integer The table’s padding value.
tableSpacing
integer The table’s spacing value.
tableTagText
string Text that contains table tag info that does not
have a direct correlation in Fireworks.
tableWidth
integer Percentage width if the table in the current
cell has a percentage width.
targetText
string Target text for this image, if any.
top
integer Top of the cell in pixels. The top starts at 0.
width
integer Width of the image in pixels, including
column spans.
Property (read-only) or method Data type Notes