[osflash] Introducing FZip... ZIP it up!
hosey hosey
hoseyhosey at gmail.com
Wed Dec 13 16:56:53 EST 2006
Ouch, my fault...
Explanation below but in brief: When I re-zipped the path "icons/" coming
through as a file. I was not excluding it.
Full explanation.
I made a AS3 project and dropped in your files
Then I added
}else{
trace(file.getContentAsString()
}
at line 62 of sample code. see below
if(file.filename.indexOf("icons/") == 0 && file.filename.indexOf(".png") !=
-1) {
// yeah, display it
var loader:Loader = new Loader();
loader.loadBytes(file.content);
loader.x = 18 * (count % 32);
loader.y = 18 * Math.floor(count / 32) + 20;
addChild(loader);
count++;
}else{
trace(file.getContentAsString())
}
It worked correctly with the famfamfam_silk_icons_v013.zip zip I downloaded
form your site. When I unzipped and rezipped (both with winrar and winzip)
and then applying the python script: it was causing this error to be thrown.
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at deng.fzip::FZipFile/getContentAsString
()[G:\work\WorkspaceFlex2\FZipTest\deng\fzip\FZipFile.as:189]
at
FZipTest/FZipTest::onEnterFrame()[G:\work\WorkspaceFlex2\FZipTest\FZipTest.as:63]
Sorry for the trouble. Thanks for the code......
On 12/13/06, Claus Wahlers <claus at codeazur.com.br> wrote:
>
> hosey hosey wrote:
>
> > In the documents it mentions Adler32 checksum for non compressed files.
> > How do you have both? I unzipped the sample...rezipped applied
> > python..and I am getting errors.
>
> With FZip we distribute a Python script that you can use to inject
> Adler32 checksums into the ZIP archive. This is needed as
> ByteArray.uncompress() needs it, but ZIP only provides CRC23.
> It is not needed if you just store files in a ZIP (use no compression).
>
> What errors do you get?
>
> > Also, is there going to be a zipping of files in the future?
>
> Most likely..
>
> Cheers,
> Claus.
>
> --
> claus wahlers
> côdeazur brasil
> http://codeazur.com.br/
> http://wahlers.com.br/claus/blog/
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20061213/a5490274/attachment.htm
More information about the osflash
mailing list