User Guide

Table Of Contents
Converting from application server data types to ActionScript 67
The following is additional information on conversion from ActionScript data types to server
data types:
Flash Remoting converts ActionScript Number data types to any valid Java or .NET numeric
data type wherever possible. If the number cannot be converted to the appropriate data type
for the service, if the number exceeds the valid range of an integer data type, for example, Flash
Remoting throws an error on the server.
Flash Remoting can convert ActionScript data to Java Boolean and numeric primitive types
that correspond to the listed class types.
Flash Remoting treats all ActionScript arrays with non-contiguous indexes (for example, arrays
with indexes of
0, 2, and 3 but not 1) or those with both numeric and text indexes (for
example, arrays with indexes of
0, 1, 2, "data1", and "data2") as associative arrays. In these
cases, it converts the numeric indexes to keys with numbers as the strings (for example, "
0",
"
1", "2").
Converting from application server data types to ActionScript
Flash Remoting automatically converts between the data types specific to the application server
programming environment and ActionScript.
The following table shows how Flash Remoting converts data returned from the application
server to ActionScript data types:
C# data type Visual Basic
data type
SOAP
data type
ColdFusion
MX data type
Java data
type
Converted
ActionScript
data type
null Nothing null N/A null null
bool
System.Boolean
Boolean boolean Boolean, 0, or 1
For details, see
“ColdFusion to
ActionScript
data conversion
issues”
on page 69
Boolean Boolean
any number type any number type decimal,
float,
double
Val(Number)
For details, see
“ColdFusion to
ActionScript
data conversion
issues”
on page 69
Number Number
System.Char
System.String
Char
String
string String String
Character
String
See notes
following this
table.
System.DateTime Date dateTime Date Date Date