108
Cross-Product Extensions
The following table shows the mapping between the Fireworks Object Model data types and
the RPC data types.
DOM data
type
RPC data
type
Example
Description
array
array
<array></array>
Types map identically.
Boolean
Boolean
<bool value="true" />
Both types are identical. Both
contain only two values:
true
or
false
.
color
string
<string
value="#7788CCFF" />
A color is a string with nine
characters. It has the format
#RRGGBBAA.
date
dictionary
<dict>
<int key="year"
value="2002" />
<int key="month"
value="9" />
<int key="day"
value="3" />
<int key="hour"
value="20" />
<int key="minutes"
value="15" />
<int key="seconds"
value="32" />
</dict>
A date is a dictionary with the
following subelement keys:
year, month, day, hour, minutes,
and seconds. All six elements
are integer data types.
dictionary
dictionary
<dict></dict>
Types map identically.
float
float
<double value="5.132"
/>
Types map identically.
integer
integer
<int value="7" />
Types map identically.
matrix
dictionary
<dict>
<array key="matrix">
<double value="1.0" />
<double value="0.0" />
<double value="0.0" />
<double value="0.0" />
<double value="1.0" />
<double value="0.0" />
<double value="0.0" />
<double value="0.0" />
<double value="1.0" />
</array>
</dict>
A matrix is a dictionary that
contains one subelement key:
matrix
. A matrix is an array of
nine float elements. The
elements start at the top row
and go in row-major order.
null
null
<null />
Types map identically.
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...