Using the common API
357
Using the common API
You can use the common Macromedia API if you want commands to use a common syntax
(and thus run a single command in multiple applications). You can access this API using
app.methodName()
.The following methods are currently supported in Fireworks and
Dreamweaver to let developers easily create commands for both applications.
app.toggleFloater()
Identical to
fw.toggleFloater()
.
app.setFloaterVisibility()
Identical to
fw.setFloaterVisibility()
.
app.getRootDirectory()
Identical to the Fireworks object property
appDir •
.
app.browseDocument()
Identical to
fw.browseDocument()
.
NO
TE
The app.getRootDirectory() function is useful if you want to use
app.browseDocument()
to
view files within the applications’s folder.
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...