Slices Object - Adobe 38039927 - Fireworks CS3 - PC Extended User Manual

Extending fireworks
Hide thumbs Also See for 38039927 - Fireworks CS3 - PC:
Table of Contents

Advertisement

Property (read-only) or method
setFrameFileName
(frameIndex)
skipCell
tableAlign
tableBorder
tablePadding
tableSpacing
tableTagText
tableWidth
targetText
top
width

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 253). For example,
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.
}
}
The following table lists the properties of the Slices object, along with their data types and, where appropriate,
acceptable values and notes. All Slices object properties are read-only.
Data type
Notes
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
""
Boolean
Set to
true
previous row span or column span.
string
The table alignment for the table in the current cell.
integer
The table's border width.
integer
The table's padding value.
integer
The table's spacing value.
string
Text that contains table tag info that does not have a
direct correlation in Fireworks.
integer
Percentage width if the table in the current cell has a
percentage width.
string
Target text for this image, if any.
integer
Top of the cell in pixels. The top starts at
integer
Width of the image in pixels, including column spans.
is the slice information for the first cell at row 0, column 0. The
Slices[0][0]
(an empty string).
if this cell in the table is covered by a
.
0
ADOBE FIREWORKS CS3
255
Extending Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents