MACROMEDIA FIREWORKS 8-EXTENDING FIREWORKS Manual page 103

Table of Contents

Advertisement

The
operation informs the server that the client has finished working on the
release
specified object. A
subelements. In the following example, the client tells the server that it is has finished
working on the object with ID 1:
<release obj="1" />
Each type of request requires an obj attribute, and all but the release request require a
name attribute. Requests can be only of types get, set, func, or release. The RPC
server rejects all other types.
Object IDs
RPC clients reference objects on the server by their object IDs. Because all functionality is
exposed by means of objects, every client request must contain a valid object ID. When an
object that can be accessed through RPC is created, it is assigned a unique object ID. The
object retains that ID for its entire lifetime. This happens for all RPC server objects, whether
they are created directly by an RPC call or by an internal Fireworks function. The object IDs
can be reused after the corresponding object is destroyed.
The object ID number should be treated as a string data type that could contain non-
numbers, (do not treat the object ID as an integer data type).
Fireworks has the following 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"
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
or
.
App
fw
"smartShape"
is the SmartShape Object ID. This object id references the global
JavaScript variable
"Document"
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"
is the Fireworks Errors Object ID, used mainly for reporting and determining
when errors occur in Fireworks. Its JavaScript counterpart is
All other object IDs are generated when the object is created, and may or may not have the
same IDs between application invocations.
request must specify only an
release
and is used to create an manipulate Auto Shapes.
smartShape
attribute and no
obj
.
Errors
Cross-product architecture
103

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FIREWORKS 8-EXTENDING FIREWORKS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Fireworks 8

Table of Contents