User Guide
Table Of Contents
- Contents
- About Flash Remoting
- Getting Started
- Using Flash Remoting ActionScript
- Using the RemotingConnector component (Flash Professional only)
- Using Flash Remoting Data in ActionScript
- About Flash Remoting and data types
- Understanding Action Message Format
- Converting from ActionScript to application server data types
- Converting from application server data types to ActionScript
- ColdFusion to ActionScript data conversion issues
- About working with objects
- About working with RecordSet objects
- About working with XML
- The NetConnection Debugger
- Using Flash Remoting with ColdFusion MX
- Using Flash Remoting for Java
- About Flash Remoting for Java
- Calling Java classes or JavaBeans from ActionScript
- Calling Enterprise JavaBeans (EJBs) from Flash
- Calling servlets and JSPs from Flash
- Calling JMX MBeans from Flash (JRun only)
- Calling server-side ActionScript from Flash (JRun only)
- Handling function results in ActionScript
- Using Flash Remoting with JRun security
- Passing XML objects between Flash and Java
- Viewing Flash Remoting log entries
- Using Flash Remoting for Microsoft .NET
- Flash Remoting for Microsoft .NET
- Calling ASP.NET pages from Flash
- Making an ASP.NET page available to Flash Remoting
- Getting a reference to an ASPX-based service in ActionScript
- Invoking ASPX pages in ActionScript
- Using the Flash Remoting custom server control in ASPX pages
- Using the Flash Remoting namespace in code-behind files
- Using ASP.NET state management with Flash Remoting
- Using ASP.NET exception handling
- Using ADO.NET objects with Flash Remoting
- Displaying a RecordSet object in Flash with ActionScript
- Calling web services from Flash
- Calling ASP.NET assemblies from Flash
- Viewing Flash Remoting log entries
- Using NetServices and Connection Classes
- Index

Using Flash Remoting with ColdFusion components 105
When you assign a value to the Flash.Pagesize variable, you specify that if the record set has
more than that number of records, the record set becomes pageable and returns the number of
records specified in the
Flash.Pagesize variable. For example:
import mx.remoting.Service;
import mx.remoting.PendingCall;
//…
var CFMService:Service = new Service(
"http://localhost/flashservices/gateway",
null,
"helloExamples",
null,
null);
var pc:PendingCall = CFMService.getData(10);
//…
Flash UI components are designed to recognize results returned in increments. After the initial
delivery of records, the RecordSet ActionScript class assumes the task of fetching records. You can
configure the client-side RecordSet object to fetch records in various ways using the
RecordSet.setDeliveryMode() ActionScript function.
In many cases, you do not have to modify the Flash UI components to handle data returned in
increments. For example, if the record set is returned to a Flash list box, the list box requests more
rows as the user scrolls through the list box.
Using Flash Remoting with ColdFusion components
ColdFusion components require little modification to work with Flash. The cffunction tag
names the function and contains the application logic, and the
cfreturn tag returns the result
to Flash.
Determining the Flash service name
The service name in ActionScript corresponds to the name of the CFC file that contains the
ColdFusion component. For example, if you create a ColdFusion component in the file
flashComp.cfc, and the file is located in the directory helloExamples under your web root
directory, you would define the service in ActionScript as follows:
import mx.remoting.Service;
var CFCService:Service = new Service(
"http://localhost/flashservices/gateway",
null,
"helloExamples.flashComp",
null,
null);
Within ColdFusion components, you create functions that define the functionality of the
component. After defining the ActionScript service, you call component functions directly from
ActionScript. For example, the following component defines two functions:
<cfcomponent>
<cffunction name="functA" access="remote" returnType="Struct">