User Guide
Example: Using the External API with an ActiveX container 523
Individual values, including function parameters and function return values, use a formatting
scheme that includes data type information in addition to the actual values:
ActionScript
class/value
C# class/
value
Format Comments
null null
<null/>
Boolean true bool true
<true/>
Boolean false bool false
<false/>
String string
<string>string value</string>
Number, int, uint single, double,
int, uint
<number>27.5</number>
<number>-12</number>
Array (elements
can be mixed
types)
A collection
that allows
mixed-type
elements, such
as ArrayList or
object[]
<array>
<property id="0">
<number>27.5</number>
</property>
<property id="1">
<string>Hello there!</string>
</property>
...
</array>
The <property>
node defines
individual
elements, and the
id attribute is the
numeric, zero-
based index.
Object A dictionary
with string keys
and object
values, such as
a HashTable
with string keys
<object>
<property id="name">
<string>John Doe</string>
</property>
<property id="age">
<string>33</string>
</property>
...
</object>
The <property>
node defines
individual
properties, and the
id attribute is the
property name (a
string).
Other built-in or
custom classes
<null/>
or
<object></object>
ActionScript
encodes other
objects as null or
as an empty
object. In either
case any property
values are lost.