Using The Flash Remoting Service With Coldfusion Pages - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

Using the Flash Remoting service with ColdFusion pages

When building a ColdFusion page that interacts with Flash movies, the directory name that
contains the ColdFusion pages translates to the Flash service name in ActionScript. The
individual ColdFusion page names contained in that directory translate to service functions in
ActionScript.
In your CFML, you use the Flash variable scope to access parameters passed from Flash movies
and return values to Flash movies. To access parameters passed from Flash movies, you use the
parameter name appended to the
the Flash application, use the
returned to the Flash application, use the
The following table shows the variables contained in the Flash scope:
Variable
Flash.Params
Flash.Result
Flash.Pagesize
In addition, the following table compares the ColdFusion data types and their ActionScript
equivalents:
ActionScript data type
Number (primitive data type) Number
boolean (primitive data type) boolean
String
ActionScript (AS) object
AS Object (as the only
argument passed to a service
function)
null
undefined
Ordered array
Named array
Date object
XML object
RecordSet
Flash
Flash.Result
Description
A structure containing the
parameters passed from the Flash
movie.
The variable returned to the Flash
movie that called the function.
The number of records returned at a
time to Flash.
ColdFusion MX data type
String
Structure
Arguments to the service function. ColdFusion pages (.cfm):
variable scope, ColdFusion components (.cfc): named arguments
null (ASC returns 0, which translates to not defined)
null (ASC returns 0, which translates to not defined)
Array
Struct
Date
XML document
Query object

Using the Flash Remoting service with ColdFusion pages

variable or the
Flash.Params
variable. To set an increment value for records to be
variable.
Flash.Pagesize
For more information
See
"Accessing parameters passed from
Flash" on page
See
"Returning results to Flash"
on page
See
"Returning records in increments to
Flash" on page
array. To return values to
644.
645.
645.
flash
643

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion mx

Table of Contents