776 Chapter 12: ActionScript Dictionary
XMLSocket.close()
Availability
Flash Player 5.
Usage
myXMLSocket.close()
Parameters
None.
Returns
Nothing.
Description
Method; closes the connection specified by XMLSocket object.
See also
XMLSocket.connect()
XMLSocket.connect()
Availability
Flash Player 5; behavior changed in Flash Player 7.
Usage
myXMLSocket.connect(host, port)
Parameters
host
A fully qualified DNS domain name, or an IP address in the form aaa.bbb.ccc.ddd. You
can also specify
null to connect to the host server on which the SWF file resides. If the SWF file
issuing this call is running in a web browser,
url must be in the same domain as the SWF file; for
details, see “Description,” below.
port The TCP port number on the host used to establish a connection. The port number must
be 1024 or higher.
Returns
A Boolean value.
Description
Method; establishes a connection to the specified Internet host using the specified TCP port
(must be 1024 or higher), and returns
true or false depending on whether a connection is
successfully established. If you don’t know the port number of your Internet host machine,
contact your network administrator.
If you specify
null for the host parameter, the host contacted will be the host where the SWF file
calling
XMLSocket.connect() resides. For example, if the SWF file was downloaded from http:/
/www.yoursite.com,specifying
null for the host parameter is the same as entering the IP address
for www.yoursite.com.