Adobe COLDFUSION 9 Manual page 616

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
Feature
logger level
redirect URL
case sensitivity
Using the Flash Remoting service with ColdFusion pages
When you build a ColdFusion page that interacts with a SWF application, the directory name that contains the
ColdFusion pages translates to the service name that you call in ActionScript. The individual ColdFusion page names
within that directory translate to service functions that you call in ActionScript.
Note: Flash Remoting cannot interact with virtual directories accessed through a ColdFusion mapping.
In your ColdFusion pages, you use the Flash variable scope to access parameters passed to and from a SWF application.
To access parameters passed from a SWF application, you use the parameter name appended to the
the
array. To return values to the SWF application, use the
Flash.Params
increment value for records in a query object to be returned to the SWF application, use the
The following table shows the variables contained in the Flash scope:
Variable
Description
Flash.Params
Array that contains the parameters passed from the SWF application.
If you do not pass any parameters,
empty.
Flash.Result
The variable returned from the ColdFusion page to the SWF
application that called the function.
Because ActionScript performs automatic type conversion, do
Note:
not return a Boolean literal to Flash from ColdFusion. Return
indicate
true
Flash.Pagesize
The number of records returned in each increment of a record set to a
SWF application.
The following table compares the ColdFusion data types and their ActionScript equivalents:
ActionScript data type
Number (primitive data type)
Boolean (primitive data type)
String (primitive data type)
Description
You can set the level of logging between
following tag is the default logger level tag:
<logger level="Error">coldfusion.flash.ColdFusionLogger</logger>
In the
<redirect-url>
not sent with AMF data. By default, the
{context.root}
<redirect-url>{context.root}</redirect-url>
The <
lowercase-keys>
ActionScript 1.0 and ColdFusion use case insensitive data structures to store associative
arrays, objects and structs. The Java representation of these data types requires a case-
insensitive Map, which the gateway achieves by forcing all keys to lowercase.
ActionScript 2.0 is case sensitive and requires a <lowercase-keys> tag value of
The following
<lowercase-keys>
<lowercase-keys>true</lowercase-keys>
Flash.params
, and return
0
to indicate
false
.
ColdFusion data type
Number
Boolean (0 or 1)
String
Last updated 8/5/2010
None
,
Error
tag, you can specify a URL to receive HTTP requests that are
<redirect-url>
, which is the context root of the web application:
tag specifies how the gateway handles case sensitivity.
tag is the default tag:
Flash.Result
For more information
See
"Accessing parameters passed from
still exists, but it is
Flash" on page 612.
See
"Returning results to
1
to
See
"Returning records in increments to
Flash" on page 614.
,
Info
,
Warning
, and
Debug
. The
tag is set to
false
.
scope or
Flash
variable. To set an
variable.
Flash.Pagesize
Flash" on page 613.
611

Advertisement

Table of Contents
loading

Table of Contents