Slices Object - Adobe 65011817 - Fireworks CS4 - Mac Extended User Manual

Extending guide
Hide thumbs Also See for 65011817 - Fireworks CS4 - Mac:
Table of Contents

Advertisement

Last updated 12/8/2009

Slices object

Slices is an object that has some properties and is also a two-dimensional array of SliceInfo objects (see
object" on page 277). For example,
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.
Property (read-only)
demoIndex
doDemoHTML
doShimEdges
doShimInternal
doSkipUndefined
id
imagesDirPath
layerName
menuArrowPath
menuPath
numColumns
numRows
is the slice information for the first cell at row 0, column 0. The first
Slices[0][0]
Data type
zero-based index
Boolean
Boolean
Boolean
Boolean
integer
string
string
string
string
integer
integer
Notes
Index for each file generated for multiple file button export.
Corresponds to the Export Multiple Nav bar HTML Files check
box in the Document Specific tab of the HTML Setup dialog
box. Setting this property to
true
where n is the number of buttons. A value of
a single HTML page.
Set to
true
if table shims are set to Transparent Image in
Document properties.
Specifies if the shim mode is internal.
Set to
true
if Export Undefined Slices is not selected in
Document Properties.
Slice ID.
Relative URL to the images folder. For example
or
"../site_images"
, or
""
(an empty string) if the images
and the HTML are in the same directory.
Name of the layer.
Relative URL to the shim GIF file, arrows.gif.
Relative URL of the menu.
Number of columns in the HTML table. Does not include the
shim column.
Number of rows in the HTML table. Does not include the shim
row.
EXTENDING FIREWORKS
HTML export objects
"SliceInfo
produces n+1 HTML pages
false
produces
,
, "images/"
279

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs4

Table of Contents