User Guide

The Fireworks object 25
selection
array Array of the selected objects in the active
document. If nothing is selected, it returns an
array of length zero. If no document is open,
it returns
null.
selectedMask
object If a single item is selected and that item is a
mask, this property returns an ElementMask
object (see “ElementMask object”
on page 45); otherwise, it returns
null.
styles array Array of the Style object that is currently
loaded in the Style panel (see “Style object
on page 61).
textOutputEncoding
string The default text encoding for any text file that
the JavaScript interpreter generates.
Use
"iso-8859-1" for ASCII or "utf-8" for
Unicode.
userJsCommandsDir
string The path to the user-level Commands
directory, which is expressed as a file://URL.
In Fireworks, this folder is stored on a per-
user basis on multiuser systems. Even on
single-user systems, this folder is not inside
the Fireworks installation directory.
userSmartShapesDir string The path to the user’s Auto Shapes
directory, which is expressed as a file://URL
userSmartShapeToolsDir string The path to the user’s Auto Shape Tools
directory, which is expressed as a file://URL.
userSwfCommandsDir
string The path to the user-level SWF Commands
directory, which is expressed as a file://URL.
In Fireworks, this folder is stored on a per-
user basis on multiuser systems. Even on
single-user systems, this folder is not inside
the Fireworks installation directory.
xhtmlFormat
Boolean Determines whether the JavaScript
interpreter should output XHTML formatted
files or HTML formatted files; XHTML (
true)
or HTML (
false).
Property Data type Notes