Xmlsocket.ondata - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

XMLSocket.onData

Availability
Flash Player 5.
Usage
XMLSocket.onData = function(src:String) {
// your statements here
}
Parameters
A string containing the data sent by the server.
src
Returns
Nothing.
Description
Event handler; invoked when a message has been downloaded from the server, terminated by a
zero (0) byte. You can override
without parsing 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
call it in your implementation of
Example
In this example, the
The zero (0) byte terminator is not included in the string.
XMLSocket.prototype.onData = function (src) {
this.onXML(new XML(src));
}
XMLSocket.onData
method invokes the
with custom behavior,
XMLSocket.onData
parameter is a string containing XML text downloaded from the server.
src
to intercept the data sent by the server
XMLSocket.onXML
is not called unless you
XMLSocket.onXML
.
XMLSocket.onData 1067
method. If you

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