MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference page 1063

Actionscript language reference
Table of Contents

Advertisement

If
XMLSocket.connect()
successful; later, the
connection succeeded or failed. If
be established.
Example
The following example uses
file resides and uses
the connection:
var socket:XMLSocket = new XMLSocket()
socket.onConnect = function (success:Boolean) {
if (success) {
trace ("Connection succeeded!")
} else {
trace ("Connection failed!")
}
}
if (!socket.connect(null, 2000)) {
trace ("Connection failed!")
}
See also
function,
XMLSocket.onConnect
returns a value of
XMLSocket.onConnect
XMLSocket.connect()
XMLSocket.connect()
to display the return value indicating the success or failure of
trace
, the initial stage of the connection process is
true
method is invoked to determine whether the final
returns
false
to connect to the host where the SWF
, a connection could not
XMLSocket.connect() 1063

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents