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

Using Flash Remoting with ColdFusion pages 101
The following table lists ActionScript collections and describes how to access them in ColdFusion
pages:
Accessing ActionScript objects
ActionScript supports the object initializer syntax when calling a function. For example, the
following function call passes two parameters as objects:
myService.myMethod({x:1, y:2});
In this example, the function passes x with a value of 1 and y with a value of 2.
In your ColdFusion page, you can access objects using the object name, as in the following
example:
<cfset param1=Flash.x>
<cfset param2=Flash.y>
You can also pass arrays and structures using this syntax, as follows:
var array1:Array = new Array();
array1[0] = "zero";
array1[1] = "one";
var struct1:Array = new Array();
struct1["zero"] = "banana";
struct1["one"] = "orange";
myService.myMethod({x:array1, y:struct1});
Collection ActionScript example Notes
Strict array
var myArray:Array = new Array();
myArray[0] = "zero";
myArray[1] = "one";
myService.myMethod(myArray)
;
The Flash Remoting service converts
the array parameters to a ColdFusion
MX array. All CFML array operations
work as expected.
<cfset p1=Flash.Params[1][1]>
<cfset p2=Flash.Params[1][2]>
Named or
associative array
var myStruct:Array = new Array();
myStruct["zero"] = "banana";
myStruct["one"] = "orange";
myService.myMethod(myStruct)
;
In ActionScript, named array keys are
not case sensitive.
<cfset p1=Flash.Params[1].zero>
<cfset p2=Flash.Params[1].one>
Named
parameters using
object initializer
myService.myMethod({x:1, y:2,
z:3});
Provides a convenient way of passing
named parameters to ColdFusion
pages. Access these parameters in
ColdFusion pages as members of the
Flash scope.
<cfset p1=Flash.x>
<cfset p2=Flash.y>
<cfset p3=Flash.z
>