O'Reilly logo

Actionscript Cookbook by Joey Lott

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 21. Recordsets

Introduction

Databases are an integral part of many applications, and Flash Remoting helps to integrate databases into your Flash applications easily. Data in a database is stored in tables as records. You can think of a database table as a grid and a record as being a single row in that table containing data for each column. When data is retrieved from a database it is stored as a recordset. ColdFusion recordsets are called Query objects, Java recordsets are called ResultSet objects, and .NET recordsets are called DataTable objects. But regardless of what the datatype is called in the server-side application, when it is returned to your Flash movie by way of Flash Remoting it is automatically converted into a RecordSet object. See Recipe 20.22 for more information on retrieving a recordset.

The RecordSet class is part of the Flash Remoting Components installation. To include the class in your Flash movies, you should include the NetServices.as file:

#include "NetServices.as"

If you are using client-side recordsets only, it is sufficient to include RecordSet.as instead of NetServices.as.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required