778 Chapter 12: ActionScript Dictionary
XMLSocket.onClose()
Availability
Flash Player 5.
Usage
myXMLSocket.onClose() = function() {
// your statements here
}
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 your own actions.
See also
function
, XMLSocket.onConnect()
XMLSocket.onConnect()
Availability
Flash Player 5.
Usage
myXMLSocket.onConnect(success)
// your statements here
}
Parameters
success
A Boolean value indicating whether a socket connection was successfully established
(true or false).
Returns
Nothing.
Description
Event handler; invoked by Flash Player when a connection request initiated through
XMLSocket.connect() has succeeded or failed. If the connection succeeded, the success
parameter is true; otherwise the success parameter is false.
The default implementation of this method performs no actions. To override the default
implementation, you must assign a function containing your own actions.