MACROMEDIA FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 Use Manual page 99

Using flash remoting for flash mx 2004 actionscript 2.0
Table of Contents

Advertisement

The Flash scope has several predefined variables that you can use to pass information, as described
in the following table:
Variable
Description
Array containing the parameters passed from the
Flash.Params
Flash application to the ColdFusion page. If you do
not pass any parameters,
but it is empty.
Flash.Result
Result returned to the Flash application from the
ColdFusion page.
Note: Because ActionScript performs automatic
type conversion, do not return a Boolean literal to
Flash from ColdFusion. Return
and return
Number of records in each increment of a record
Flash.Pagesize
set returned to Flash from a ColdFusion page.
When you call a ColdFusion page from a Flash application, the Flash Remoting gateway converts
ActionScript data types to ColdFusion data types. The data type of any results returned from
ColdFusion to the Flash application are converted to ActionScript data types. For more
information on this conversion, see
page
63.
Using Flash.Params to access parameters in a ColdFusion page
The
Flash.Params
the order that the parameters were passed to the ColdFusion page. You use standard ColdFusion
array syntax to reference the parameters.
For example, the following ActionScript call passes three parameters:
myService.myMethod(param1, param2, param3);
In your ColdFusion page, you access these parameters using
<cfset p1=Flash.Params[1]>
<cfset p2=Flash.Params[2]>
<cfset p3=Flash.Params[3]>
The following ActionScript code calls a ColdFusion page to execute a query. The ActionScript
passes a single parameter to the ColdFusion page:
myService = new Service(
"http://localhost/flashservices/gateway",
null,
"doc_code",
null,
null);
var pc:PendingCall = myService.query1param("RipperStik");
Flash.Params
to indicate
0
false
Chapter 4, "Using Flash Remoting Data in ActionScript," on
array contains one element for each parameter passed from ActionScript, in
still exists,
to indicate
,
1
true
.
Flash.Params
Using Flash Remoting with ColdFusion pages
For more information
See
"Using Flash.Params to
access parameters in a
ColdFusion page"
on page
99.
See
"Returning results to
ActionScript" on page
See
"Returning record sets to
Flash" on page
103.
, as follows:
102.
99

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash remoting mx

Table of Contents