User Guide
22 Chapter 2: The Fireworks Object Model
The Fireworks object
The Fireworks object is a global object, which you can use to set or retrieve properties that relate
to the current operating environment. (The App object that was used in Fireworks 3 is supported
for backward compatibility, but its use is deprecated in favor of the Fireworks object.)
The following table lists the properties of the Fireworks object, along with their data types and,
where appropriate, acceptable values and notes. Read-only properties are marked with a bullet (•).
Note: For information on how to format nonstandard data types, such as rectangle or point, see
“Formatting nonstandard data types” on page 11.
Refer to the Fireworks object by using fw.propertyName or fireworks.propertyName. Note
that
fireworks must be lowercase.
Property Data type Notes
activeViewScale
float The scaling (zoom value) of the active view.
1.0=100% of the normal view.
appBatchCodeDir • string The path to the Batch Code directory, which
is expressed as file://URL.
appDir • string The path to the directory that contains
the Fireworks application, which is
expressed as file://URL.
appExportSettingsDir • string The path to the Export Settings directory,
which is expressed as 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.
appFavoritesDir • string The path to the URL Libraries directory,
which is expressed as 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.
appHelpDir • string The path to the directory that contains
the Fireworks help file, which is expressed as
file://URL.
appHtmlCodeDir • string The path to the HTML Code directory, which
is expressed as file://URL.
appJsCommandsDir • string The path to the Commands directory, which
is expressed as file://URL.
appJsExtensionsDir • string The path to the JSExtensions directory,
which is expressed as file://URL.
appMacCreator •string
In the format: "MKBY"
appMacJsfFileType
•string
In the format: "TEXT"