[haXe] Best way to send byte array
Nicolas Cannasse
ncannasse at motion-twin.com
Thu Dec 14 09:48:51 CET 2006
> Hello,
> I am trying to save a compressed XML to the file system from flash
> through swhx. I change the XML into a byteArray and compress. I am
> using the line
> cnx.App.saveFileByteContent.call([f,d]);
> where f is string and d is bytearray
> It fails silently.
> I am not sure of the best way to debug this situation. any ideas?
You can't send a ByteArray between Flash and Neko since Neko doesn't
know what a ByteArray is. However if you're trying to compress a string,
you can as well do it on the Neko side by using neko.zip.Compress
(http://haxe.org/api/neko/zip/Compress)
Nicolas
More information about the Haxe
mailing list