Converting from ActionScript to application server data types
65
Converting from ActionScript to application server data types
Flash Remoting automatically converts between ActionScript data and the data types specific to
the application server programming environment.
In strictly typed environments, such as Java and C#, the service function data types must
correspond to (or be derived from) the listed data types. In loosely typed programming
environments, such as ColdFusion or Visual Basic, the environment must be able to use the listed
data type for the service function variable.
The following table lists the server data types into which the Flash gateway converts ActionScript
data types:
ActionScript
Data Type
Converted
Java data type
Converted C#
data type
Converted
Visual Basic
data type
Converted
SOAP
data type
Converted
ColdFusion
MX data type
null
null
null
Nothing
null
null (not
defined)
ColdFusion
uses a null
value
internally, but
reports an
undefined
variable
undefined
null
null
Nothing
null
null (not
defined)
Boolean
Boolean
System.Boolean
Boolean
boolean
Boolean
Number
Number
Any numeric type,
as appropriate
Any numeric
type, as
appropriate
decimal,
float,
double,
integer, int
Number
String
String
System.String
String
string
String
Date
Date
System.DateTime
Date
dateTime
Date
Array
(contiguous
numeric
indexes)
ArrayList
System.Collections
.ArrayList
System.Collecti
ons.ArrayList
array
Array
Associative
Array
(named
indexes)
java.util.Map
(case-insensitive
implementation)
System.Collections
.Hashtable
System.Collecti
ons.Hashtable
Complex
type
Struct
RecordSet
Cannot be sent
to Server
Cannot be sent to
Server
Cannot be sent
to Server
Cannot be
sent to
Server
Cannot be
sent to Server