Using The Common Api; Working With Selected Objects - Adobe 38039927 - Fireworks CS3 - PC Extended User Manual

Extending fireworks
Hide thumbs Also See for 38039927 - Fireworks CS3 - PC:
Table of Contents

Advertisement

Palette or panel
Several API functions reference the History panel (see "History panel functions" on page 297). Throughout the
Fireworks documentation and online help, the term palette is reserved for discussions of a color palette, and the term
panel is used to refer to the floating windows that are available within Fireworks. Therefore, when the function name
contains palette, the descriptions refer to a panel.

Using the common API

You can use the common Adobe 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
currently supported in Fireworks and Dreamweaver to let developers easily create commands for both applications.
app.toggleFloater()
Identical to "fw.toggleFloater()" on page 204.
app.setFloaterVisibility()
Identical to "fw.setFloaterVisibility()" on page 203.
app.getRootDirectory()
Identical to the Fireworks object property "appDir •" on page 170.
app.browseDocument()
Identical to "fw.browseDocument()" on page 174.
Note: The app.getRootDirectory() function is useful if you want to use app.browseDocument() to view files within the
applications's folder.

Working with selected objects

When an object is selected, either programmatically (for example, using the
user, you can return (get) or set the value of that object's properties using common notation that will work on
various objects. In other words, you can write a command that will get or set the value of an object's properties
whether the user selects a Text object, or an Image object, or any other recognized object. In Fireworks, a recog-
nizable object is classified as one of the following element types:
Hotspot
(basically, a slice)
SliceHotspot
Path
Group
Instance
Text
.The following methods are
app.methodName()
dom.selectAll()
ADOBE FIREWORKS CS3
Extending Guide
function) or by a
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents