Appendix A: Using Netservices And Connection Classes; Creating A Gateway Connection Using The Netservices Object - MACROMEDIA FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 Use Manual

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

Advertisement

Using NetServices and Connection Classes
This appendix explains how to use the NetServices object to create a gateway connection and
return a Connection object. It also explains how to handle results and error information that are
returned by a service. This appendix covers the following topics:
"Creating a gateway connection using the NetServices object" on page 163
"Handling results for a Connection object" on page 167
"Handling errors for a Connection object" on page 169

Creating a gateway connection using the NetServices object

Note: Although using NetServices to create a Connection object is still supported, in Macromedia
Flash MX 2004, Macromedia recommends that you create a gateway connection using the Service
object. For more information, see the Service class in Flash Remoting ActionScript Dictionary Help.
To create a Flash Remoting Connection object, you first specify the gateway URL and then create
a Connection object that uses it. You have several options for accomplishing these operations,
including the following:
You can use the
create the Connection object.
You can use a
and use the
NetServices.createGatewayConnection()
the Connection object. Flash Remoting uses the default gateway for all connections that you
create without otherwise specifying a gateway.
You can specify the gateway in the web page you use to deploy the Flash SWF file, and use the
NetServices.createGatewayConnection()
Connection object.
NetServices.createGatewayConnection()
NetServices.setDefaultGatewayUrl()
APPENDIX A
method to specify the URL and
method to specify a default gateway,
method without a URL to create
method without a URL to create the
163

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