Contents > Developing ColdFusion MX Applications > Using the Flash Remoting Service > Using the Flash Remoting service with ColdFusion pages PreviousNext

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 Flash variable or the Flash.Params array. To return values to the Flash application, use the Flash.Result variable. To set an increment value for records to be returned to the Flash application, use the Flash.Pagesize variable.

The following table shows the variables contained in the Flash scope:

Variable

Description

For more information

Flash.Params

A structure containing the parameters passed from the Flash movie.

See Accessing parameters passed from Flash.

Flash.Result

The variable returned to the Flash movie that called the function.

See Returning results to Flash.

Flash.Pagesize

The number of records returned at a time to Flash.

See Returning records in increments to Flash.

In addition, the following table compares the ColdFusion data types and their ActionScript equivalents:

ActionScript data type

ColdFusion MX data type

Number (primitive data type)

Number

boolean (primitive data type)

boolean

String

String

ActionScript (AS) object

Structure

AS Object (as the only argument passed to a service function)

Arguments to the service function. ColdFusion pages (.cfm): flash variable scope, ColdFusion components (.cfc): named arguments

null

null (ASC returns 0, which translates to not defined)

undefined

null (ASC returns 0, which translates to not defined)

Ordered array

Array

Named array

Struct

Date object

Date

XML object

XML document

RecordSet

Query object


Contents > Developing ColdFusion MX Applications > Using the Flash Remoting Service > Using the Flash Remoting service with ColdFusion pages PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/usingsa4.htm