MACROMEDIA FIREWORKS 8-EXTENDING FIREWORKS Manual page 93

Table of Contents

Advertisement

Property (read-only)
doSkipUndefined
imagesDirPath
numColumns
numRows
shimPath
Working with selected objects
When an object is selected, either programmatically (for example, using the
function) or by a user, you can return (get) or set the value of that object's
dom.selectAll()
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
(basically, a slice)
SliceHotspot
Path
Group
Instance
Text
RectanglePrimitive
PathAttrs
Image
To test whether a text block is selected, type the following code:
firstSelection = fw.selection[0];
if (firstSelection == "[object Text]"){
alert("I am a text block");
}
Data type
Notes
Boolean
Set to
selected in Document Properties.
string
Relative URL to the images folder. For
example
or
""
HTML are in the same directory.
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,
if Export Undefined Slices is not
true
, or
, "images/"
"../site_images"
(an empty string) if the images and the
"images/shim.gif"
Working with selected objects
,
.
93

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FIREWORKS 8-EXTENDING FIREWORKS and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Fireworks 8

Table of Contents