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

About working with RecordSet objects 77
Getting information about a RecordSet object
To get information about a RecordSet object, use the following methods:
In the following example,
theRecordSet represents a RecordSet object:
// Get an array of the column names and convert it to a comma delimited list
columns = theRecordSet.columnNames.join();
// The total number of records in the RecordSet
recordcount = theRecordSet.length;
// The number of records that are currently available to the Flash client
recordsavail = theRecordSet.getNumberAvailable();
// Have all the records been returned? (Only true if recordcount ==
// recordsavail)
allthere = theRecordSet.isFullyPopulated();
Changing record set data
After you download all records into the RecordSet object or create a new
RecordSet object in
ActionScript, you can use the
RecordSet ActionScript class data-editing methods to insert,
update, and remove records. Changes to the RecordSet object in the Flash application are not
propagated back to the application server. To insert, update, or remove records in a database, you
must call application server methods or pages using service functions.
Method Description
RecordSet.contains()
Indicates whether the record set contains the specified record.
RecordSet.getColumnNames()
Returns an array of the names of the columns of a RecordSet
object.
RecordSet.getItemID()
Returns the record ID used internally by Flash Remoting to
identify the record.
RecordSet.getIterator()
Returns a new iterator for the record set. For more information
see Collections in Flash.
RecordSet.getLength()
Deprecated. Returns the number of records in a RecordSet
object.
RecordSet.getLocalLength()
Returns the number of records downloaded, or currently
available locally. In
fetchAll mode this value is equal to the
length of the remote record set.
RecordSet.getNumberAvailable()
Returns the number of records that have been downloaded
from the server.
RecordSet.getRemoteLength()
Returns the number of records in the RecordSet on the server.
RecordSet.isEmpty()
Determines whether a RecordSet object is empty.
RecordSet.isFullyPopulated()
RecordSet.isLocal()
Returns true if the RecordSet object was created locally using
the New operator or if the record set was returned by a Flash
Remoting service function and all the data in the record set has
been returned from the server.
A RecordSet object must be fully populated before you can
change its contents or use the
RecordSet.filter() method.
These two methods are currently equivalent.