Adobe 65011817 Extended User Guide - Page 290
Generating stubs for nonstandard client types
UPC - 883919157368
View all Adobe 65011817 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 290 highlights
Last updated 12/8/2009 EXTENDING FIREWORKS 286 Cross-Product Extensions Generating stubs for nonstandard client types If the client is not written in one of the languages for which Adobe provides a client RPC library, the client implementer must create or generate the stubs. For information about how to do this, see "The Fireworks Object Model" on page 6. The application object (with object ID fw) is of the Fireworks class (for other objects with reserved IDs, see "Object IDs" on page 283). All objects returned by the server contain the class name as an attribute. Given an object's class, the client can determine what methods and properties it has based on the Fireworks JavaScript DOM. The DOM document also gives the prototypes of the methods and properties of a class. The client can use the DOM document to determine the number and types of method parameters. The DOM document uses more types in its prototypes than the RPC mechanism defines. So, several of the documented types collapse to one RPC type. In addition to static properties, objects of certain classes can also have dynamic properties. "The Fireworks Object Model" on page 6 documents dynamic properties and specifies whether the dynamic properties are read only. Most dynamic properties are on lists (for example, the BehaviorsList class). The properties take an integer or string as a property name, and return a value based on the element associated with the property name. The following table shows the mapping between the Fireworks Object Model data types and the RPC data types. DOM data type array Boolean RPC data type array Boolean color string date dictionary dictionary float integer dictionary float integer Example Description Types map identically. Both types are identical. Both contain only two values: true or false. A color is a string with nine characters. It has the format #RRGGBBAA. A date is a dictionary with the following subelement keys: year, month, day, hour, minutes, and seconds. All six elements are integer data types. Types map identically. Types map identically. Types map identically.