Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UTF-8 では、1 文字あたりのバイト数が異なります。で読み取ることができるバイト数をどのように理解できますflash.net.Socket.readUTFBytes(length:uint):Stringか?
flash.net.Socket.readUTFBytes(length:uint):String
Socket必要な情報を含むオブジェクトで使用できるプロパティがあります。
Socket
mySocket.addEventListener(ProgressEvent.SOCKET_DATA, _onSocketDataHandler); private function _onSocketDataHandler(e:ProgressEvent):void { var str:String = mySocket.readUTFBytes(mySocket.bytesAvailable); trace(str); }