Slices is an object that has some properties and is also a two-dimensional array of SliceInfo objects (see SliceInfo object). 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.
}
}
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) | Data type | Notes |
|---|---|---|
|
|
zero-based index |
Index for each file generated for multiple file button export. |
|
|
Boolean |
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 |
|
|
Boolean |
Set to |
|
|
Boolean |
Set to |
|
|
string |
Relative URL to the images folder. For example |
|
|
integer |
Number of columns in the HTML table. Does not include shim column. |
|
|
integer |
Number of rows in the HTML table. Does not include shim row. |
|
|
string |
Relative URL to the shim GIF file; for example, |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fireworks/8/fwextending/fw_02_68.htm