Alexander Farber wrote:
> Yes, that's with what I had started and what doesn't work :-)

so then why did you start with posting code here (pasted below) that
didn't contain any exception catching? that's the crucial point: you
have to catch the exception, otherwise you would either get corrupted
UTF strings or and be caught in an infinite loop (because you used
"while" instead of "if"!).

here the code you had posted (that is quite different to mine):

  _socket = new Socket();
  _socket.addEventListener(ProgressEvent.SOCKET_DATA, handleTcpData);
.....
private function handleTcpData(event:Event):void {
   while (_socket.bytesAvailable) {
      var str:String = _socket.readUTF();
      updateGUI(str);
   }
}

cheers,
valentin
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to