72
Chapter 2: The Fireworks Object Model
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.
Working with selected objects
When an object is selected, either programmatically (for example, using the
dom.selectAll()
function) or by a user, you can return (get) or set the value of that object’s properties using
common notation that will work on various objects. In other words, you can write a command
that will get or set the value of an object’s properties whether the user selects a Text object, or an
Image object, or any other recognized object. In Fireworks, a recognizable object is classified as
one of the following element types:
•
Hotspot
•
SliceHotspot
(basically, a slice)
•
Path
•
Group
•
Instance
•
Text
•
RectanglePrimitive
•
PathAttrs
•
Image
Property (read-only)
Data type
Notes
demoIndex
zero-based index Index for each file generated for multiple file
button export.
doDemoHTML
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
true
produces n+1
HTML pages where n is the number of
buttons. A value of
false
produces a single
HTML page.
doShimEdges
Boolean
Set to
true
if table shims are set to
Transparent Image in Document properties.
doSkipUndefined
Boolean
Set to
true
if Export Undefined Slices is not
selected in Document Properties.
imagesDirPath
string
Relative URL to the images folder. For
example
, "images/"
, or
"../site_images"
,
or
""
(an empty string) if the images and the
HTML are in the same directory.
numColumns
integer
Number of columns in the HTML table. Does
not include shim column.
numRows
integer
Number of rows in the HTML table. Does not
include shim row.
shimPath
string
Relative URL to the shim GIF file; for
example,
"images/shim.gif"
.
Summary of Contents for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Page 1: ...Extending Fireworks...
Page 4: ...4 Contents...
Page 8: ...8 Chapter 1 Extending Fireworks Overview...
Page 102: ...102 Chapter 4 Auto Shapes...