The Flash Remoting-related ActionScript classes provide methods to configure Flash Remoting MX, interact with the remote services, and manipulate data on the client. The following figure shows the Flash Remoting-related ActionScript classes and their methods. It divides Flash Remoting classes and methods into three functional areas for configuring Flash Remoting MX and calling services, debugging, and handling record set data, and shows the classes and their methods for each area. (The NetConnection class includes methods in two categories.)
The following table describes the Flash Remoting classes. For detailed reference information on individual class methods, see Chapter 8, "Flash Remoting ActionScript Dictionary".
| Class |
Purpose |
|---|---|
| NetServices |
Sets a default gateway and establishes a connection (NetConnection) object for the gateway. The gateway is the Flash Remoting MX software that resides on the application server.Use the NetServices.createGateWayConnection method to create a gateway connection (NetConnection) object that connects your Flash application to a Flash Remoting gateway on the application server. For more information on using NetServices methods, see "Configuring Flash Remoting MX". |
| NetConnection |
Configures and manages connections to the gateway. The NetConnection.getService method provides access to a service on the gateway. For more information on using this method, see "Creating the service object".The NetConnection.setCredentials method provides login information for the gateway server. For more information on using this method, see "Authenticating to the application server".The class includes four methods for debugging individual connections. For more information see "Using connection-specific debugging methods". The remaining methods in this class ( addHeaders, call, close, and connect) are lower-level utilities that are not needed in most applications. |
| NetDebug |
Required by the NetConnection Debugger. Manages the local connection between the Flash application being debugged and the NetConnection Debugger. Includes a single method, NetDebug.trace, which sends a trace event to the NetConnection Debugger with a specific ActionScript object.The NetConnection Debugger reports information on Flash Remoting events. For ColdFusion MX, these events also include server activity, such as SQL queries. For more information on using the NetConnection Debugger, see Chapter 4, "Using the NetConnection Debugger". |
| RecordSet |
Creates and manipulates RecordSet objects. RecordSet objects typically represent SQL query results and correspond to the ColdFusion Query objects and C# System.Data.DataTable objects. Some remote services return RecordSet objects to Flash. RecordSet methods include functions to create record sets and to add, delete, change, and get record set items. They also can get information about the record set, sort the record set, define an object to receive notifications when the record set changes, and set the way the record set is delivered from the server. For more information on using the RecordSet class, see "Working with RecordSet objects". |
| DataGlue |
Binds RecordSet objects to Flash MX components, such as ListBox or ComboBox, that have labels with associated data. The DataGluebindFormatStrings and DataGlue.bindFormatFunction methods specify a RecordSet to use to populate the UI component and tell Flash how to populate the component's labels and data from the RecordSet object. For more information on using DataGlue, see"Using DataGlue methods". |
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/UseActionScript3.htm
Comments
No screen name said on Mar 19, 2004 at 11:19 AM :