AS3 has a built in compression function, similar algorithm to ZIP. flash.utils.ByteArray.compress() and uncompress().
Should be much faster & better compression than any algorithm written in actionscript. -David R On 8/4/06, vineet_sc <[EMAIL PROTECTED]> wrote: > meychi's got an actionscript 2.0 LZX implementation you can use: > > http://www.meychi.com/archive/000031.php > > > ----- Original Message ---- > From: jim <[EMAIL PROTECTED]> > To: Open Source Flash Mailing List <[email protected]> > Sent: Thursday, August 3, 2006 6:57:10 PM > Subject: Re: [osflash] AS3 File Zip & Unzip utility > > Thanks, > > I was looking at using it mainly on xml files that are getting a bit big, so > the http compression might be the way to go. > > Jim > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Bob Ippolito > Sent: 03 August 2006 23:09 > To: Open Source Flash Mailing List > Subject: Re: [osflash] AS3 File Zip & Unzip utility > > > On Aug 3, 2006, at 1:55 PM, jim wrote: > > > Does anyone know if it would be possible to zip & unzip files > > directly in > > Actionscript 3? I am looking for a way to reduce download sizes of > > assets > > loaded at runtime. > > > > I have had a quick hunt on sourceforge & codeprojct but before I > > dig into it > > any further I was hoping someone else might have had a similar idea > > and know > > of an open source zipping utility that I could look at porting the > > code > > from. > > What kind of assets are you talking about? Compression isn't going to > do anything for you with SWF, PNG, JPEG, MP3, GIF, FLV. Text is all > you're really going to be able to compress. Even that may already be > compressed by HTTP if the server and the browser are configured and > able to do so. > > If you really do have a use case for text compression, search for > zlib as3. > > -bob > > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > > > > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
