Macromedia flash media server 2-client-side actionscript language reference for flash media server 2 User Manual
NetConnection class
67
For security reasons, certain
remoteMethod
names are reserved at the application level; do not
call these method names with the
NetConnection.call method()
. The reserved names are
/
onConnect
,
/onDisconnect
,
/onStatus
,
/onAppStop
, and
/onAppStart
.
resultObject
An object parameter that is needed only when the sender is expecting a
result. The result object can be any user-defined object. For it to be of use, a handler named
onResult
must be called when the result arrives. If you don’t need a result object, pass
null
.
p1,...pN
Optional parameters to be passed to the specified method.
Returns
Nothing.
Description
Method; invokes a command or method on the server. You must create a server-side function
to define this method. This method is also used when your application connects to an
application server. For information on using Flash with an application server, see
to define this method. This method is also used when your application connects to an
application server. For information on using Flash with an application server, see
Example
The following function checks for a message, sends it, then clears the local string.
function mySend(){
if (length(msg) > 0) {
my_nc.call("message", null, msg);
}
msg = "";
msg = "";
}
NetConnection.close()
Availability
■
Flash Player 6.
■
Flash Communication Server MX 1.0.
Usage
public close() : Void
Parameters
None.
Returns
Nothing.