Netconnection.call - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

Parameters
A string that identifies the header and the ActionScript object data associated with it.
name
mustUnderstand
this header before it handles any of the following headers or messages.
Any ActionScript object.
object
Returns
Nothing.
Description
Method; adds a context header to the AMF packet structure. This header is sent with every future
AMF packet. If you call
replaces the existing header, and the new header persists for the duration of the NetConnection
object. You can remove a header by calling
header to remove and an undefined object.
Example
The following example creates a new NetConnection instance,
at web server www.foo.com that is listening at port 1929. This application dispatches the service /
blag/SomeCoolService. The last line of code adds a header called
nc=new NetConnection();
nc.connect("http://www.foo.com:1929/blag/SomeCoolService");
nc.addHeader("foo", true, new Foo());

NetConnection.call

Availability
Flash Communication Server MX.
Usage
myNetConnection.call(methodName, [resultObj, p1, ..., pN])
Parameters
A method specified in the form
methodName
command
someObj/doSomething
clientObj.someObj.doSomething
path is missing,
clientObj.doSomething()
An optional parameter that is used to handle return values from the server. The
resultObj
result object can be any object you defined and can have two defined methods to handle the
returned result:
onResult
invoked; otherwise,
Optional parameters that can be of any ActionScript type, including a reference
p1, ..., pN
to another ActionScript object. These parameters are passed to the
when the method is executed on the remote application server.
Returns
For RTMP connections, returns a Boolean value of
client; otherwise,
36
A Boolean value;
true
NetConnection.addHeader
tells the remote server to invoke the
method, with all the
and
onStatus
is invoked.
onResult
. For application server connections, it always returns
false
indicates that the server must understand and process
using the same name, the new header
NetConnection.addHeader
nc
[objectPath/]method
p1, ..., pN
is invoked on the remote server.
. If an error is returned as the result,
if a call to
true
with the name of the
, and connects to an application
:
foo
. For example, the
parameters. If the object
onStatus
specified above
methodName
is sent to the
methodName
.
true
is

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?

This manual is also suitable for:

Flash communication server mx

Table of Contents