90
The Fireworks Object Model
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” on page 84
).
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
.
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...