Chapter 4: 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 5.
Refer to the Fireworks object by using
must be lowercase.
Property
activeTool
activeViewScale
appBatchCodeDir
•
appDir
•
appExportSettingsDir
•
appFavoritesDir
appHelpDir
•
•
appHtmlCodeDir
•
appJsCommandsDir
appJsExtensionsDir
•
appMacCreator
•
•
appMacJsfFileType
fw.propertyName
Data type
Notes
string
The active tool in the application.
float
The scaling (zoom value) of the active view. 1.0=100%
of the normal view.
string
The path to the Batch Code directory, which is
expressed as file://URL.
string
The path to the directory that contains the Fireworks
application, which is expressed as file://URL.
•
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.
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.
string
The path to the directory that contains the Fireworks
help file, which is expressed as file://URL.
string
The path to the HTML Code directory, which is
expressed as file://URL.
string
The path to the Commands directory, which is
expressed as file://URL.
string
The path to the JSExtensions directory, which is
expressed as file://URL.
string
In the format: "MKBY"
string
In the format: "TEXT"
or
fireworks.propertyName
. Note that
fireworks
170