Re: [Flashcoders] Zipping in AS3

2008-09-24 Thread Claus Wahlers



Hey Claus, one of the reasons I can't use it is because of its inability
to work with a .zip file created on Mac OSX. The other reason, is that
I've attempted to use it to write out a .zip file, and I can't get it to
produce a valid .zip file. I've even tried loading in a .zip, and then
saving it out directly, and that doesn't seem to work.  I have only
tested this with AIR, so I assume I don't need to be testing this with a
.zip file that contains the Adler32 checksum. Do you have a working
example of this working with FZip? If so, I'd love to take a look at it.
Thanks!


It is true that FZip can't read ZIPs created with the MAC OS X Archive 
utility, or any ZIP that makes us of data descriptors.


For your other problem, i created a very simple Flex AIR app that tests 
roundtripping (creates a ZIP and loads it back in):


http://codeazur.com.br/lab/fzip/examples/RoundTrip.mxml

Works here..

And yes, in AIR the Adler32 limitation doesn't apply, so you should be 
able to load any ZIP (minus those that make use of data descriptors). 
You only need the injection hack if you use FZip in the plugin (and if i 
recall right Flash Player 10 is going to fix that but i didn't find the 
time to check).


Cheers,
Claus.
http://codeazur.com.br/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Zipping in AS3

2008-09-24 Thread Jon Bradley


On Sep 24, 2008, at 9:57 AM, Claus Wahlers wrote:

Hey Claus, one of the reasons I can't use it is because of its  
inability

to work with a .zip file created on Mac OSX.


AS3 Zip from nochump avoids the alder32 issue by implementing the  
deflate() mechanism in software.


http://nochump.com/blog/?p=15

It's not as fast as the native bytearray methods though (which only  
works in AIR anyway).


The only thing you might have to deal with is re-writing the parsing  
routines so that you don't get a script timeout error on large zip  
archives. I had to do this recently for a project.


- jon
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Zipping in AS3

2008-09-24 Thread Mac Angell
 It is true that FZip can't read ZIPs created with the MAC OS X Archive


 utility, or any ZIP that makes us of data descriptors.

 

 For your other problem, i created a very simple Flex AIR app that
tests 

 roundtripping (creates a ZIP and loads it back in):

 

 http://codeazur.com.br/lab/fzip/examples/RoundTrip.mxml

 

 Works here..

 

 And yes, in AIR the Adler32 limitation doesn't apply, so you should be


 able to load any ZIP (minus those that make use of data descriptors). 

 You only need the injection hack if you use FZip in the plugin (and if
i 

 recall right Flash Player 10 is going to fix that but i didn't find
the 

 time to check).

 

 Cheers,

 Claus.

 http://codeazur.com.br/

 

 

Thanks Claus! Your example helps quite a bit.

 

-Mac

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Zipping in AS3

2008-09-22 Thread Mac Angell
Mac Angell wrote:

 

 Hey everyone! I'm trying to find a solid zip/unzip library for AS3.
I've

 done some testing with both FZip and AS3 Zip, and I've been running
into

 problems with both. So I'm wondering if there are any others out
there

 that anyone knows about that have been tested extensively. Or if any
of

 you know of any applications/sites that use FZip or AS3 Zip that I
could

 see a demo/source code of, that might help me get over some hurdles
as

 well.

 

What's your problem with FZip?

 

Cheers,

Claus.

http://codeazur.com.br/

 

Hey Claus, one of the reasons I can't use it is because of its inability
to work with a .zip file created on Mac OSX. The other reason, is that
I've attempted to use it to write out a .zip file, and I can't get it to
produce a valid .zip file. I've even tried loading in a .zip, and then
saving it out directly, and that doesn't seem to work.  I have only
tested this with AIR, so I assume I don't need to be testing this with a
.zip file that contains the Adler32 checksum. Do you have a working
example of this working with FZip? If so, I'd love to take a look at it.
Thanks!

 

-Mac

 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Zipping in AS3

2008-09-19 Thread Claus Wahlers

Mac Angell wrote:


Hey everyone! I'm trying to find a solid zip/unzip library for AS3. I've
done some testing with both FZip and AS3 Zip, and I've been running into
problems with both. So I'm wondering if there are any others out there
that anyone knows about that have been tested extensively. Or if any of
you know of any applications/sites that use FZip or AS3 Zip that I could
see a demo/source code of, that might help me get over some hurdles as
well.


What's your problem with FZip?

Cheers,
Claus.
http://codeazur.com.br/


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders