> private function handleTcpData(event:Event):void { > while (_socket.bytesAvailable) { > var str:String = _socket.readUTF(); > updateGUI(str); > } > }
maybe you shouldn't ignore thrown errors: AFAIK if the UTF8-data is not complete (ie.. the last UTF-8 byte sequence is truncated), readUTF() will throw an EOFError error. so if you handle this error correctly, you might be safe? cheers, valentin _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders