Delivering Recordset Data To Flash Applications In Coldfusion Mx - MACROMEDIA FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 Use Manual

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

Advertisement

The following example filters a RecordSet object to produce a new RecordSet object with records
that have contact fields that start with a specific letter:
var mySelectionFunction = function(aRecord, letter)
{
return (aRecord.contact.charAt(0) == letter);
}
contact_grid.dataProvider = myRecordSet.filter(mySelectionFunction,
theLetter);
In this example:
The
contact_grid
The
myRecordSet
function.
The
theLetter
The
mySelectionFunction()
if the first letter of the record matches the specified letter.
The
myRecordSet.filter()
mySelectionFunction()
which the
mySelectionFunction()
object.
The Contact_grid component's
myRecordSet object, generated by the
contact_grid
Note: For RecordSet objects that have 2,000 or fewer records, the
less than one second to finish. The length of time to filter RecordSet objects increases rapidly as the
number of records grows.

Delivering RecordSet data to Flash applications in ColdFusion MX

By default, Flash Remoting returns a RecordSet object to the Flash client in a single response
when the application server finishes retrieving the data.
In ColdFusion MX, if you expect to return a large record set and the available data transmission
speeds are slow, such as when using dial-up modem, you can choose to return a record set from
the application server in increments. Incremental record sets are also known as pageable record sets.
When you use pageable record sets, the following events occur:
On the server, the record set is held in session data, and server-side Flash Remoting RecordSet
service provides access to the records.
On the client, the RecordSet object can download records when needed by the Flash
application.
variable represents a ListBox UI component.
variable represents a record set that has been retrieved by calling a service
variable represents user input in the Flash application (a single letter).
function takes a record and a letter and returns the value
method filters the
function to create a new RecordSet object. Only those records for
function returns
dataProvider
ListBox.
myRecordSet
are included in the new RecordSet
true
property receives a filtered copy of
myRecordset.filter()
About working with RecordSet objects
object using the
method, as the data for the
method generally takes
filter()
true
81

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?

This manual is also suitable for:

Flash remoting mx

Table of Contents