View comments | RSS feed

SliceInfo object

The following table lists the properties and methods of the SliceInfo object, along with their data types and, where appropriate, acceptable values and notes. All SliceInfo object properties are read-only.

Property (read-only) or method Data type Notes

altText

string

The alternate text description for this slice.

behaviors

object

BehaviorsList object that contains the behaviors for this slice (see BehaviorsList object).

cellHeight

integer

Height of this table row, in pixels.

cellWidth

integer

Width of this table column, in pixels.

downIndex

zero-based index

The index for the frame of the down state for button slices.

getFrameFileName (frameIndex)

zero-based index

Returns a string that is the filename for the slice on the specified frame, without directory or extension information. For example, when exporting a file base named Button, Slices[0][0].getFrameFileName(0) returns "Button_r1_c1". Generally all slices that have images have a frame filename. For frames 1 and higher, only slices that are rollovers or that are targeted by a swap image have names.

hasAltText

Boolean

Set to true if the slice has an alternate text description.

hasHref

Boolean

Set to true if the slice has a URL.

hasHtmlText

Boolean

Set to true if the cell is a text-only slice.

hasImage

Boolean

Set to true if this cell has an image. For text-only slices, this is set to false.

hasImagemap

Boolean

Set to true if there are image map Hotspots in this image slice.

hasTargetText

Boolean

Set to true if the target text is not empty.

height

integer

Height of the image in pixels, including row spans.

href

string

The URL link for this slice, which is expressed as file://URL.

htmlText

string

Text for a text-only slice.

imagemap

object

ImagemapList object containing the image map information for this slice (see ImagemapList object).

imageSuffix

string

Extension for the image in this cell, including a period (.); for example, ".gif".

isUndefined

Boolean

Set to true if the slice does not have a slice object drawn over it. If you draw two slices that don't cover your document, Fireworks automatically generates slices to cover the rest of the document. These slices are undefined.

left

integer

Left side of the cell in pixels. The left starts at 0.

nestedTableSlices

object

A Slices object that describes a nested table occupying the current table cell (see Slices object). Set to null if the cell does not contain a nested table.

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.


Comments


senocular said on Jan 24, 2006 at 2:23 AM :
Also not mentioned are the rowSpan and columnSpan properties which, as they imply, represent the rowspan and colspan values for the table cell for that slice. A value of 0 represents that the current cell is ommited as a result of another cell spanning over it (i.e. skipCell would be true). A value of 1 represents no spanning and greater than 1 would be used in the respective rowspan or colspan properties of the td tag.

 

RSS feed | 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_67.htm