MACROMEDIA FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 Use Manual page 18

Using flash remoting for flash mx 2004 actionscript 2.0
Table of Contents

Advertisement

Connecting to a service
The fundamental step in using Flash Remoting in your Flash application is connecting to a
remote service. In Flash Remoting for Flash MX 2004 ActionScript 2.0, you can connect to a
remote service either by using the RemotingConnector component or by using the Flash
Remoting ActionScript API to write code in the Actions panel.
To connect to a service using the RemotingConnector component (Flash Professional):
If you use Flash Professional, you perform these basic steps to use the RemotingConnector to
connect to a service.
In the Components panel, select RemotingConnector from the Data Components section and
1.
drag it onto the Stage.
Set parameters in the Component inspector.
2.
Set bindings in the Component inspector.
3.
Write code in the Actions panel.
4.
For more detailed information about connecting to a service by using the RemotingConnector
component, see
only)," on page
53. You should read the following sections, however, even if you plan to use the
RemotingConnector to connect to your remote services.
To connect to a service by writing ActionScript code:
From the Window menu in Flash, select Other Panels > Common Libraries > Remoting.
1.
From the Library panel, drag the RemotingClasses library onto the Stage.
2.
To use the NetDebug class and the NetConnection Debugger, you must also drag the
3.
RemotingDebugClasses library to the Stage.
Write your code in the Actions panel.
4.
For more information on writing ActionScript code for Flash Remoting, see the following
sections on building a Hello World application and
ActionScript," on page
For more information on adding the RemotingDebugClasses library to your application, and on
removing it, see
Building a Hello World application with Flash Remoting
In this section, you build a simple Flash application that uses the Flash Remoting ActionScript
API to connect to a remote service. You can choose among four different remote services,
including a ColdFusion page, a JavaBean, an ASPX page, and a web service. Flash applications
require minimal changes to call different remote services.
The following sections show you first how to build the remote service and then how to call the
remote service from your Flash application using Flash Remoting ActionScript.
18
Chapter 1: Getting Started
Chapter 3, "Using the RemotingConnector component (Flash Professional
29.
"Using the NetConnection Debugger" on page
Chapter 2, "Using Flash Remoting
87.

Advertisement

Table of Contents
loading
Need help?

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash remoting mx

Table of Contents