Hello, sorry, but I'll try to start another thread to explain my problem.
I read data from a socket into a ByteArray _ba and keep inspecting it. When there is enough data, I'd like to extract and process it and remove the processed bytes from the _ba. Here is how I try to do the removal, but it doesn't work (newBA is empty) var newBA:ByteArray = new ByteArray(); newBA.readBytes(_ba); _ba = newBA; My complete code is at: http://pastebin.com/esz4As6D Thank you Alex _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders