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

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

Advertisement

The
serviceName
for this example, see the table that follows this section.
The two
values represent the
null
used in this case. For information about these parameters, see the constructor for the Service
class in Flash Remoting ActionScript Dictionary Help.
The
serviceFunctionName
appropriate value for this example, see the table that follows this section.
The call to the
howdyService.serviceFunctionName()
PendingCall object, called
application sets with a RelayResponder object. The RelayResponder object specifies the object
(first parameter) that contains the methods that handle the values returned by the service
function. The second parameter in the RelayResponder constructor specifies the result handler
method and the third parameter specifies the fault handler method.
This example handles the results returned by the service function using callback functions
named
serviceFunctionName_Result()
the service function succeeds, the
service function fails, the
The result, which is the value that you expect from the service function, is returned in a
ResultEvent object. The fault, which the service returns for an error condition, is returned in a
FaultEvent object.
For more information about connecting to remote services and handling results, see
"Using Flash Remoting ActionScript," on page
Save the file.
6.
In the preceding ActionScript code, substitute the values from the following table for the
and
serviceName
serviceFunctionName
you are using:
Remote service
serviceName variable
ColdFusion MX
remoteservices
JRun 4
com.remoteservices
ASP.NET
remoteservices
Web service
http://services.xmethods.net/soap/
For more information about application server-specific service names and service function names,
see the following chapters:
Chapter 6, "Using Flash Remoting with ColdFusion MX," on page 97
Chapter 7, "Using Flash Remoting for Java," on page 119
Chapter 8, "Using Flash Remoting for Microsoft .NET," on page 143
, which is the name of the remote service. To select the appropriate value
connection
is the name of the service function that you call. To select the
in this example. It contains a
pc
_Result
function is called to handle the error.
_Fault
variables, in accordance with the remote service that
urn:xmethods-delayed-quotes.wsdl
and
responder
service function returns a
responder
or
serviceFunctionName_Fault()
function is called and it processes the result. If the
29.
Building Flash applications with Flash Remoting
parameters, which are not
property which the
. If the call to
Chapter 2,
serviceFunctionName
variable
helloWorld
helloWorldJava
helloWorldNET
getQuote
21

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