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 with trace(socket.readUTF()); how to save the socket data to a string variable? Thanks Mark