How to enable LZMA compression in Flash Player 11?

As mentioned in the release notes for Flash Player 11, developers have added support for LZMA compression.

The question is, how can I enable this support? Maybe there is a mxmlc option? Or a few more steps?

Just setting -swf-version=13 and switching playerglobal.swc to sdk did not help me.

+6
source share
2 answers

-swf-version=13 compiled with the -swf-version=13 option automatically support LZMA compression, which means that compressed SWF LZMA files can be loaded at run time, however, SWF files created by Flash Builder (version 4.5.1) are still compressed using compressed zlib compression by default,

Tinic Uro, one of the Flash developers, wrote a utility to convert SWF files from standard zlib compression to lzma. This must be done as an additional step after compilation, at least until Flash Builder starts supporting LZMA output.

Update (clarification):

The Flex SDK does not yet output compressed LZMA SWF files no matter what parameters you use, so the utility is needed. The compilation option "swf-version" tells the SDK to output the Flash 11 SWF. This does not mean that SWF is compressed with LZMA compression, just so that it can use it. The bottom line is that Flash 11 supports LZMA compressed SWFs, but you need to do extra work to actually create the LZMA SWF.

+6
source

I wrote a Python script that will do this conversion based on Tinic code. It is a little easier to use if you are not on Windows.

+2
source

Source: https://habr.com/ru/post/900027/


All Articles