[haXe] Best way to send byte array

hosey hosey hoseyhosey at gmail.com
Thu Dec 14 18:55:12 CET 2006


Thanks Nicolas,
  The Application is going to be on the web as well as a standalone (using
swhx) and I am trying to keep as much of the functionality inside the swf as
possible.  I tried the byteArray.toString() and passing as string; that
didn't work, either.  Is the communication between SWHX and Flash limited to
String?

Thanks
Hosey

On 12/14/06, Nicolas Cannasse <ncannasse at motion-twin.com> wrote:
>
> > 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
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20061214/a58fb979/attachment.htm


More information about the Haxe mailing list