User Guide
Table Of Contents
- Contents
- About Flash Remoting
- Getting Started
- Using Flash Remoting ActionScript
- Using the RemotingConnector component (Flash Professional only)
- Using Flash Remoting Data in ActionScript
- About Flash Remoting and data types
- Understanding Action Message Format
- Converting from ActionScript to application server data types
- Converting from application server data types to ActionScript
- ColdFusion to ActionScript data conversion issues
- About working with objects
- About working with RecordSet objects
- About working with XML
- The NetConnection Debugger
- Using Flash Remoting with ColdFusion MX
- Using Flash Remoting for Java
- About Flash Remoting for Java
- Calling Java classes or JavaBeans from ActionScript
- Calling Enterprise JavaBeans (EJBs) from Flash
- Calling servlets and JSPs from Flash
- Calling JMX MBeans from Flash (JRun only)
- Calling server-side ActionScript from Flash (JRun only)
- Handling function results in ActionScript
- Using Flash Remoting with JRun security
- Passing XML objects between Flash and Java
- Viewing Flash Remoting log entries
- Using Flash Remoting for Microsoft .NET
- Flash Remoting for Microsoft .NET
- Calling ASP.NET pages from Flash
- Making an ASP.NET page available to Flash Remoting
- Getting a reference to an ASPX-based service in ActionScript
- Invoking ASPX pages in ActionScript
- Using the Flash Remoting custom server control in ASPX pages
- Using the Flash Remoting namespace in code-behind files
- Using ASP.NET state management with Flash Remoting
- Using ASP.NET exception handling
- Using ADO.NET objects with Flash Remoting
- Displaying a RecordSet object in Flash with ActionScript
- Calling web services from Flash
- Calling ASP.NET assemblies from Flash
- Viewing Flash Remoting log entries
- Using NetServices and Connection Classes
- Index

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