You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Left Right <ol...@gmail.com> on 2014/12/30 12:49:49 UTC

Out of memory trying to uncompress SWFs generated with Falcon using ByteArray.uncompress()

I understand that not all LZMA variants are understood by ByteArray,
but it would be super-friendly if Flex SDK generated such SWFs which
could be read using ByteArray...

Attached SWF was compiled using Falcon, but can't be read using ByteArray.

Thanks!

Re: Out of memory trying to uncompress SWFs generated with Falcon using ByteArray.uncompress()

Posted by Alex Harui <ah...@adobe.com>.

On 12/30/14, 9:38 AM, "Left Right" <ol...@gmail.com> wrote:

>Yes, some further investigation showed that the way the compiler
>writes the LZMA payload and the way ByteArray.uncompress() expects it
>to be are incompatible. But one can manipulate them to get ByteArray
>to load LZMA payload, see the end of this discussion:
>https://bugzilla.mozilla.org/show_bug.cgi?id=775743. The code in the
>discussion worked for me, but I was wondering whether it is possible
>to generate the payload in such a way that these manipulations
>wouldn't be necessary (I'm not sure whether Flash player is able to
>load such SWFs - something I've not yet tried).

You are welcome to try to create SWFs like that and see if they load and
run properly.

Good luck,
-Alex


Re: Out of memory trying to uncompress SWFs generated with Falcon using ByteArray.uncompress()

Posted by Left Right <ol...@gmail.com>.
Yes, some further investigation showed that the way the compiler
writes the LZMA payload and the way ByteArray.uncompress() expects it
to be are incompatible. But one can manipulate them to get ByteArray
to load LZMA payload, see the end of this discussion:
https://bugzilla.mozilla.org/show_bug.cgi?id=775743. The code in the
discussion worked for me, but I was wondering whether it is possible
to generate the payload in such a way that these manipulations
wouldn't be necessary (I'm not sure whether Flash player is able to
load such SWFs - something I've not yet tried).

On Tue, Dec 30, 2014 at 6:43 PM, Alex Harui <ah...@adobe.com> wrote:
>
>
> On 12/30/14, 3:50 AM, "Left Right" <ol...@gmail.com> wrote:
>
>>PS. Is there a way to control what compression algorithm is chosen by
>>the compiler to produce SWFs?
>>
>>On Tue, Dec 30, 2014 at 1:49 PM, Left Right <ol...@gmail.com> wrote:
>>> I understand that not all LZMA variants are understood by ByteArray,
>>> but it would be super-friendly if Flex SDK generated such SWFs which
>>> could be read using ByteArray...
>>>
>>> Attached SWF was compiled using Falcon, but can't be read using
>>>ByteArray.
>
> SWFs are not completely compressed.  There is an uncompressed header at
> the front.
>
> Right now there is no option for a different compression algorithm.  You
> can choose not to compress though.
>
> -Alex
>

Re: Out of memory trying to uncompress SWFs generated with Falcon using ByteArray.uncompress()

Posted by Alex Harui <ah...@adobe.com>.

On 12/30/14, 3:50 AM, "Left Right" <ol...@gmail.com> wrote:

>PS. Is there a way to control what compression algorithm is chosen by
>the compiler to produce SWFs?
>
>On Tue, Dec 30, 2014 at 1:49 PM, Left Right <ol...@gmail.com> wrote:
>> I understand that not all LZMA variants are understood by ByteArray,
>> but it would be super-friendly if Flex SDK generated such SWFs which
>> could be read using ByteArray...
>>
>> Attached SWF was compiled using Falcon, but can't be read using
>>ByteArray.

SWFs are not completely compressed.  There is an uncompressed header at
the front.

Right now there is no option for a different compression algorithm.  You
can choose not to compress though.

-Alex


Re: Out of memory trying to uncompress SWFs generated with Falcon using ByteArray.uncompress()

Posted by Left Right <ol...@gmail.com>.
PS. Is there a way to control what compression algorithm is chosen by
the compiler to produce SWFs?

On Tue, Dec 30, 2014 at 1:49 PM, Left Right <ol...@gmail.com> wrote:
> I understand that not all LZMA variants are understood by ByteArray,
> but it would be super-friendly if Flex SDK generated such SWFs which
> could be read using ByteArray...
>
> Attached SWF was compiled using Falcon, but can't be read using ByteArray.
>
> Thanks!