80
Chapter 3: Cross-Product Extensions
Fireworks has four reserved object IDs:
•
"0"
This is the Invalid Object ID, used for nonexistent or invalid objects. It is not frequently used
for the RPC client, but it is used in several places for the RPC server.
•
"fw"
This is the Fireworks Application Object ID. The Fireworks Application Object ID references
the main application object in Fireworks and is of the Fireworks class.
This object is used to open and create documents. In JavaScript, it is the object referenced by
App
or
fw
.
•
"smartShape"
This is the SmartShape Object ID. This object id references the global JavaScript variable
smartShape
and is used to create an manipulate smart shapes.
•
"Document"
This is the Fireworks Document Compatibility Object ID (it is deprecated, like its JavaScript
counterpart). It was used in Fireworks 2 for cleaning up file paths, and is included here only for
completeness.
•
"Errors"
This is the Fireworks Errors Object ID, used mainly for reporting and determining when
errors occur in Fireworks. Its JavaScript counterpart is
Errors
.
All other object IDs are generated when the object is created, and may or may not have the same
IDs between application invocations.
Data node
The data node is the most important type of XML node in RPC. Methods (called through the
func
operation) need to act on actual data or references to server objects identified in data nodes.
The data nodes are used as parameters and parts of replies. There are several types of data nodes,
as described in the following table.
Data type Node name Example
Description
array
array
<array><string
value="stuff" /><int
value="50" /></array>
An array data type. It is simply a container
node for the other data nodes. There are no
restrictions on how many subelements it can
contain or which types it can contain. The
contained data nodes may be of the same
type or of different types. No additional
attributes have to be added to the
contained nodes.
Boolean
bool
<bool value="true" />
The Boolean data type. It can contain either
true
or
false
and nothing else. Note that the
values are case sensitive.
Содержание DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Страница 1: ...Extending Fireworks...
Страница 4: ...4 Contents...
Страница 8: ...8 Chapter 1 Extending Fireworks Overview...
Страница 102: ...102 Chapter 4 Auto Shapes...
Страница 284: ...284 Chapter 5 Fireworks JavaScript API...