Converting From Application Server Data Types To Actionscript - MACROMEDIA FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 Use Manual

Using flash remoting for flash mx 2004 actionscript 2.0
Table of Contents

Advertisement

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
example, arrays with indexes of
cases, it converts the numeric indexes to keys with numbers as the strings (for example, "
"
", "
").
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
null
bool
System.Boolean
any number type
System.Char
System.String
System.DateTime Date
,
, and
but not
) or those with both numeric and text indexes (for
0
2
3
1
,
,
0
1
2
Visual Basic
SOAP
data type
data type
Nothing
null
Boolean
boolean
any number type
decimal,
float,
double
Char
string
String
dateTime Date

Converting from application server data types to ActionScript

,
, and
"data1"
"data2"
ColdFusion
MX data type
N/A
Boolean, 0, or 1
For details, see
"ColdFusion to
ActionScript
data conversion
issues"
on page 69
Val(Number)
For details, see
"ColdFusion to
ActionScript
data conversion
issues"
on page 69
String
) as associative arrays. In these
Java data
Converted
type
ActionScript
data type
null
null
Boolean
Boolean
Number
Number
String
String
Character
See notes
following this
table.
Date
Date
",
0
67

Advertisement

Table of Contents
loading
Need help?

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash remoting mx

Table of Contents