User Guide

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().
NOTE
The app.getRootDirectory() function is useful if you want to use app.browseDocument() to
view files within the applications’s folder.