gotoAndStop("waitForConnection");
}
See also
connect (XMLSocket.connect method)
onData (XMLSocket.onData handler)
onData = function(src:String) {}
Invoked when a message has been downloaded from the server, terminated by a zero (0) byte.
You can override
XMLSocket.onData
it as XML. This is a useful if you're transmitting arbitrarily formatted data packets, and you'd
prefer to manipulate the data directly when it arrives, rather than have Flash Player parse the
data as XML.
By default, the
XMLSocket.onData
override
XMLSocket.onData
you call it in your implementation of
Availability: ActionScript 1.0; Flash Player 5
Parameters
- A string containing the data sent by the server.
src:String
Example
In this example, the
src
server. The zero (0) byte terminator is not included in the string.
XMLSocket.prototype.onData = function (src) {
this.onXML(new XML(src));
}
onXML (XMLSocket.onXML handler)
onXML = function(src:XML) {}
Invoked by Flash Player when the specified XML object containing an XML document
arrives over an open XMLSocket connection. An XMLSocket connection can be used to
transfer an unlimited number of XML documents between the client and the server. Each
document is terminated with a zero (0) byte. When Flash Player receives the zero byte, it
parses all the XML received since the previous zero byte or since the connection was
established if this is the first message received. Each batch of parsed XML is treated as a single
XML document and passed to the
,
function statement
to intercept the data sent by the server without parsing
method invokes the
with custom behavior,
XMLSocket.onData
parameter is a string containing XML text downloaded from the
method.
onXML
XMLSocket.onXML
is not called unless
XMLSocket.onXML
.
method. If you
XMLSocket
1347
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?