Цитата:
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 to intercept the data sent by the server 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 method invokes the XMLSocket.onXML method. If you override XMLSocket.onData with custom behavior, XMLSocket.onXML is not called unless you call it in your implementation of XMLSocket.onData.
Availability: ActionScript 1.0; Flash Player 5
Parameters
src:String - A string containing the data sent by the server.
Example
In this example, the src parameter is a string containing XML text downloaded from the server. The zero (0) byte terminator is not included in the string.
XMLSocket.prototype.onData = function (src) {
this.onXML(new XML(src));
|
т.е. попробуй так:

Код:
XMLSocket.prototype.onData = function (src) {
this.onXML = tracer;
}
function tracer(){
trace("!!!");
}
И еще вариант...
Поскольку connect() возвращает true\false попробуй сделать что-то типа:

Код:
var _l1:Boolean = socket.connect();
_root.onEnterFrame =function(){
trace(_l1);
}
А вдруг конекшен сразу обрубается после того, как установился, и ничего после этого уже не передается?
Но вообще странно все это... жаль сейчас потестить не могу =(