Re: Strange installation problem

peter <[email protected]> Thu, 25 Sep 2003 21:57:41 +0200
Newsgroups gmane.comp.web.ming.general
Message-ID <[email protected]>
Am Donnerstag, 25. September 2003 18:54 schrieben Sie:
> However, the problem remains to understand why other command-line tools
> like listswf or swfparse from the macromedia SDK refuse to recognize
> this file as legal SWF... Is it normal ?
Looking with khexedit into out.swf: CWS4...

Your out.swf is compressed. There is no check in ming that swf4 and swf5 
files shouldn't be compressed because compression was introduced with version 
6. (flash mx).

Try -1 as compresslevel. 0 means using compression algorithm. I made a 
screenshot of your file and the uncompressed file out3.swf. 
(using cws2fws you can find in util/ in ming-cvs).

You can see that your file out.swf, the upper khexeditorwindow, is a 
compressed swf, the lower shows the uncompressed swf. You can see too, that 
the content of the uncompressed swf (the green) is unchanged if 
compresslevel=0. Just a few bytes are added by compress2().

Looking at ming wiki I see that I made a small mistake: 
"Level 0 means no compression."
Better: Level -1 means no compression. Level 0 means: Use compression  
algorithm, but don't do any real compression.

peterdd

_______________________________________________
ming-fun mailing list
[email protected]
http://www.opaque.net/mailman/listinfo/ming-fun
out.png (image/png, 50.5 KB) - not displayed