Import statement
import mx.services.Log;
import mx.remoting.debug.NetDebug;
import mx.remoting.NetServices;
(Deprecated)
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;
import mx.rpc.RelayResponder;
import mx.data.components.
RemotingConnector;
import mx.rpc.ResultEvent;
import mx.remoting.Service;
Configuring Flash Remoting
Before you can call a remote service, you must configure Flash Remoting, which consists of
completing the following tasks.
Note: The client does not access the remote server when you configure Flash Remoting. The client
first communicates with the remote server when it makes the first service function call.
•
Establishing a Flash Remoting gateway connection.
•
Getting a Flash Remoting service object.
•
Authenticating the user, if your application server or service requires user authentication.
The following sections describe these Flash Remoting configuration tasks.
36
Chapter 2: Using Flash Remoting ActionScript
Purpose
Log object is optional parameter to Service constructor.
You can use the Log class to create a customized logger
for your Flash Remoting application.
Provides debugging methods for Flash Remoting
applications. Remove it before publishing your application
to a production server to prevent access to debugging
information.
To initialize debugging support in a single statement without
first importing the class, you can add the following
statement to your code before creating a connection:.
mx.remoting.debug.NetDebug.initialize();
Methods in this class allow you to create and manage
gateway connections.
Facilitates asynchronous interaction between the client
application and a service function. Use if you use the
Service class to reference remote service functions.
Use this statement if you create client-side record sets or
need to access or manipulate record sets that are returned
as the result of a call to a remote service.
Enables the Responder object that relays result and fault
calls from a service to a corresponding function on the
specified object.
Implements a component that provides an easy way for
Flash Professional clients to call functions on server-side
objects.
Result handling object that contains the result returned by a
remote service function.
Use this statement to establish a gateway connection and
reference a specific remote service and the methods that it
exposes.
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?