Frage

As mentioned in release notes to Flash Player 11, developers added LZMA compression support.

Question is how can one enable this support? Maybe there's an mxmlc option? Or more steps?

Simply setting -swf-version=13 and switching playerglobal.swc in sdk didn't work for me.

War es hilfreich?

Lösung

SWFs compiled with the -swf-version=13 parameter automatically support LZMA compression, meaning that LZMA compressed SWF files can be loaded at runtime, however the SWFs output by Flash Builder (as of 4.5.1) are still compressed with the default zlib compression.

Tinic Uro, one of developers of Flash, wrote a utility to convert SWF files from the default zlib compression into lzma. This would need to be done as additional step after compiling, at least until Flash Builder starts supporting LZMA output.

Update (clarification):

The flex SDK does not yet output LZMA compressed SWF files no matter what options you use, which is why the utility is needed. The 'swf-version' compile parameter tells the SDK to output a Flash 11 SWF. This is does not mean that the SWF is compressed with LZMA compression, just that it is able to use it. The gist of this is Flash 11 is able to support LZMA compressed SWFs, but you need to do additional work to actually make a LZMA SWF.

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top