CHAPTER 2
The Fireworks Object Model
If you want to extend the functionality of Macromedia Fireworks 8 by writing or modifying a
JavaScript extensibility file, you must become familiar with the objects that Fireworks makes
available through JavaScript. The hierarchy of these objects comprises the Fireworks Object
Model, which contains the following major components:
Six global methods that are available from any part of the application and need not be
declared as methods of a particular object. For more information, see
on page
12.
Six core objects: Dialogs, Document, Errors, Files, Find, and System. For more
information, see
"Core objects" on page
is supported for backward compatibility, but its use is deprecated in favor of the Fireworks
object.)
The Fireworks object (for more information, see
Numerous objects associated with Fireworks documents, such as ExportOptions, Guides,
Path, Image, and Text. For more information, see
on page
32.
A set of objects that you can use to specify the format of HTML code when exporting
from Fireworks. For more information, see
Using the Fireworks Object Model
When scripting extensions for Fireworks, you write JavaScript commands that send calls to
the Fireworks Object Model to determine or change the current settings for a Fireworks
document. For example, the following command calls the Fireworks object (
path to the Export Settings directory (
/URL. In other words,
fw
appExportSettingsDir
on page
26), so a JavaScript command can assign the resulting value to a variable, as follows:
var expSetDir = fw.appExportSettingsDir;
13. (The App object that was used in Fireworks 3
"HTML export objects" on page
appExportSettingsDir)
references the Fireworks global object, of which
is a property (for more information, see
"Global methods"
"The Fireworks object" on page
"Objects within Fireworks documents"
fw
, which is expressed as a file:/
"The Fireworks object"
2
26).
80.
) to obtain the
9
Need help?
Do you have a question about the FIREWORKS 8-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers