User Guide

Table Of Contents
Using the Flash Remoting service with ColdFusion pages 813
Also, remember the following considerations regarding data types:
If a string data type on the server represents a valid number in ActionScript, Flash can
automatically cast it to a number if needed.
To return multiple, independent values to the Flash application, place them in a complex
variable that converts to a Flash Object, Array, or Associative Array, that can hold all of the
required data. Return the single variable and access its elements in the Flash application.
For a complete explanation of using Flash Remoting data in ActionScript, see Using Flash
Remoting MX 2004 Help.
Accessing parameters passed from Flash
To access variables passed from Flash applications, you append the parameter name to the Flash
scope or use the
Flash.Params array. Depending on how the values were passed from Flash, you
refer to array values using ordered array syntax or structure name syntax. Only ActionScript
objects can pass named parameters.
For example, if you pass the parameters as an ordered array from Flash
, array[1] references the
first value. If you pass the parameters as named parameters, you use standard structure-name
syntax like
params.name.
Undefined Null (Asc() returns 0, which translates to not defined)
Ordered array
Note: ActionScript array
indexes start at zero (for
example: my_ASarray[0]).
Array
Note: ColdFusion array indexes start at one (for example:
my_CFarray[1]).
Named (or associative) array Struct
Date object Date
XML object XML document
RecordSet Query object (when returned to a Flash application only; you cannot
pass a RecordSet from a Flash application to a ColdFusion MX
application)
ActionScript data type ColdFusion MX data type