To me that seems to work perfectly:
var a:Array = new Array();
a.push("hello");
a.push("this");
a.push("is");
a.push("a");
a.push("test");
var ba:ByteArray = new ByteArray();
ba.writeObject(a);
ba.position = 0;
var ba2:ByteArray = new ByteArray();
ba2.writeUTFBytes(ba.toString());
ba2.position = 0;
trace(ba2.readObject() is Array);
ba2.position = 0;
trace(ba2.readObject());
Instead of ba.toString you could also use ba.readUTFBytes.
Greetz Erik
On 4/26/08, Ian Thomas <[EMAIL PROTECTED]> wrote:
>
> Hi John,
> I'm surprised writeUTFBytes doesn't work - in what way doesn't it work?
>
>
> Ian
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders