![MACROMEDIA FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT... Use Manual Download Page 36](http://html1.mh-extra.com/html/macromedia/flash-remoting-mx-using-flash-remoting-for-flash-mx-2004-actionscript/flash-remoting-mx-using-flash-remoting-for-flash-mx-2004-actionscript_use-manual_3385355036.webp)
36
Chapter 2: Using Flash Remoting ActionScript
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.
import mx.services.Log;
Log object is optional parameter to Service constructor.
You can use the Log class to create a customized logger
for your Flash Remoting application.
import mx.remoting.debug.NetDebug;
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();
import mx.remoting.NetServices;
(Deprecated)
Methods in this class allow you to create and manage
gateway connections.
import mx.remoting.PendingCall;
Facilitates asynchronous interaction between the client
application and a service function. Use if you use the
Service class to reference remote service functions.
import mx.remoting.RecordSet;
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.
import mx.rpc.RelayResponder;
Enables the Responder object that relays result and fault
calls from a service to a corresponding function on the
specified object.
import mx.data.components.
RemotingConnector;
Implements a component that provides an easy way for
Flash Professional clients to call functions on server-side
objects.
import mx.rpc.ResultEvent;
Result handling object that contains the result returned by a
remote service function.
import mx.remoting.Service;
Use this statement to establish a gateway connection and
reference a specific remote service and the methods that it
exposes.
Import statement
Purpose