220
Server-Side ActionScript Language Reference
For more information about the XMLStreams class, see
“XMLStreams class” on page 227
.
Example
The following example creates an XMLSocket object:
var socket = new XMLSocket("flash");
The following example creates an XMLStreams object:
var stream = new XMLSocket("stream");
XMLSocket.close()
Availability
Flash Media Server 2.
Usage
myXMLSocket
.close()
Parameters
None.
Returns
Nothing.
Description
Method; closes the connection specified by the XMLSocket object.
Example
The following simple example creates an XMLSocket object, attempts to connect to the
server, and then closes the connection:
var socket = new XMLSocket();
socket.connect(null, 2000);
socket.close();
See also
XMLSocket.connect()