[flexcoders] pass String with socket

2011-10-25 Thread markflex2007
Hi, I pass string with socket in Flex I can see the data with trace(socket.readUTF()); but I can not do (otherwise I get #2030 error) var s:String= socket.readUTF(); I try to do var s:String=socket.readUTFBytes(socket.bytesAvailable); but socket.bytesAvailable = 0 why? I can see a string

Re: [flexcoders] pass String with socket

2011-10-25 Thread claudiu ursica
First time when you read the buffer is consumed. Comment the trace and it should work. C From: markflex2007 markflex2...@yahoo.com To: flexcoders@yahoogroups.com Sent: Tuesday, October 25, 2011 6:39 PM Subject: [flexcoders] pass String with socket   Hi, I