MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Reference page 67

Client-side actionscript language reference for flash media server 2
Table of Contents

Advertisement

For security reasons, certain
call these method names with the
,
onConnect
/onDisconnect
An object parameter that is needed only when the sender is expecting a
resultObject
result. The result object can be any user-defined object. For it to be of use, a handler named
must be called when the result arrives. If you don't need a result object, pass
onResult
Optional parameters to be passed to the specified method.
p1,...pN
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
www.macromedia.com/go/flashmediaserver_desdev_en.
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 = "";
}
NetConnection.close()
Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
public close() : Void
Parameters
None.
Returns
Nothing.
names are reserved at the application level; do not
remoteMethod
NetConnection.call method()
,
,
/onStatus
/onAppStop
. The reserved names are
, and
.
/onAppStart
NetConnection class
/
.
null
http://
67

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Media server 2

Table of Contents