• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. Client/Server Interaction, UI Compone... > 3.6. The RecordSet Class

The RecordSet Class

Now that we’ve seen the ease and power of UI components, let’s see how interactivity is enhanced using one of the most impressive aspects of Flash Remoting technology: the RecordSet class. Remote method calls commonly return recordsets, which are converted to ActionScript RecordSet objects, to the Flash movie. The RecordSet class has methods that make it easy to work with data returned from a remote method and placed in a RecordSet object. For example, to find the number of records in a RecordSet object, use the getLength( ) method:

my_rs.getLength( );

To sort the items in a RecordSet object from within the Flash movie—without making another round trip to the server—you can use the sortItemsBy( ) method:

my_rs.sortItemsBy(columnName, order);

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint