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

Server-side actionscript language reference
Table of Contents

Advertisement

Example
The following example executes a
server:
var socket = new XMLSocket();
socket.connect(null, 2000);
socket.onClose = function () {
trace("Connection to server lost.");
}
In Flash Media Server, the output of
file and Application inspector.
See also
XMLSocket.onConnect
XMLSocket.onConnect
Availability
Flash Media Server 2.
Usage
myXMLSocket.onConnect = function(success) {}
Parameters
A Boolean value indicating whether a socket connection is successfully established
success
(
or
).
true
false
Returns
Nothing.
Description
Event handler; invoked by Flash Media Server when a connection request initiated through
XMLSocket.connect()
parameter is
;
true
false
The default implementation of this method performs no actions. To override the default
implementation, you must assign a function containing custom actions.
statement if an open connection is closed by the
trace()
trace()
has succeeded or failed. If the connection succeeded, the
otherwise.
statements appears in the application log
success
XMLSocket class
223

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?

This manual is also suitable for:

Flash media server 2

Table of Contents