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
Converted
Data Type
Java data type
null
null
undefined
null
Boolean
Boolean
Number
Number
String
String
Date
Date
Array
ArrayList
(contiguous
numeric
indexes)
Associative
java.util.Map
Array
(case-insensitive
(named
implementation)
indexes)
RecordSet
Cannot be sent
to Server
Converted C#
Converted
data type
Visual Basic
data type
null
Nothing
null
Nothing
System.Boolean
Boolean
Any numeric type,
Any numeric
as appropriate
type, as
appropriate
System.String
String
System.DateTime
Date
System.Collections
System.Collecti
.ArrayList
ons.ArrayList
System.Collections
System.Collecti
.Hashtable
ons.Hashtable
Cannot be sent to
Cannot be sent
Server
to Server
Converting from ActionScript to application server data types
Converted
Converted
SOAP
ColdFusion
data type
MX data type
null
null (not
defined)
ColdFusion
uses a null
value
internally, but
reports an
undefined
variable
null
null (not
defined)
boolean
Boolean
decimal,
Number
float,
double,
integer, int
string
String
dateTime
Date
array
Array
Complex
Struct
type
Cannot be
Cannot be
sent to
sent to Server
Server
65
Need help?
Do you have a question about the FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 and is the answer not in the manual?