User Guide
Table Of Contents
- Contents
- About Flash Remoting
- Getting Started
- Using Flash Remoting ActionScript
- Using the RemotingConnector component (Flash Professional only)
- Using Flash Remoting Data in ActionScript
- About Flash Remoting and data types
- Understanding Action Message Format
- Converting from ActionScript to application server data types
- Converting from application server data types to ActionScript
- ColdFusion to ActionScript data conversion issues
- About working with objects
- About working with RecordSet objects
- About working with XML
- The NetConnection Debugger
- Using Flash Remoting with ColdFusion MX
- Using Flash Remoting for Java
- About Flash Remoting for Java
- Calling Java classes or JavaBeans from ActionScript
- Calling Enterprise JavaBeans (EJBs) from Flash
- Calling servlets and JSPs from Flash
- Calling JMX MBeans from Flash (JRun only)
- Calling server-side ActionScript from Flash (JRun only)
- Handling function results in ActionScript
- Using Flash Remoting with JRun security
- Passing XML objects between Flash and Java
- Viewing Flash Remoting log entries
- Using Flash Remoting for Microsoft .NET
- Flash Remoting for Microsoft .NET
- Calling ASP.NET pages from Flash
- Making an ASP.NET page available to Flash Remoting
- Getting a reference to an ASPX-based service in ActionScript
- Invoking ASPX pages in ActionScript
- Using the Flash Remoting custom server control in ASPX pages
- Using the Flash Remoting namespace in code-behind files
- Using ASP.NET state management with Flash Remoting
- Using ASP.NET exception handling
- Using ADO.NET objects with Flash Remoting
- Displaying a RecordSet object in Flash with ActionScript
- Calling web services from Flash
- Calling ASP.NET assemblies from Flash
- Viewing Flash Remoting log entries
- Using NetServices and Connection Classes
- Index

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