MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 222

Server-side actionscript language reference
Table of Contents

Advertisement

Example
The following example uses
var socket = new XMLSocket()
socket.onConnect = function (success) {
if (success) {
trace ("Connection succeeded!")
} else {
trace ("Connection failed!")
}
}
if (!socket.connect(null, 2000)) {
trace ("Connection failed!")
}
In Flash Media Server, the output of
file and Application inspector.
See also
XMLSocket.onConnect
XMLSocket.onClose
Availability
Flash Media Server 2.
Usage
myXMLSocket.onClose = function() {}
Parameters
None.
Returns
Nothing.
Description
Event handler; invoked only when an open connection is closed by the server. The default
implementation of this method performs no actions. To override the default implementation,
you must assign a function containing custom actions.
222
Server-Side ActionScript Language Reference
XMLSocket.connect()
trace()
to connect to the local host:
statements appears in the application log

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server 2

Table of Contents