ASZip: A Very Useful ActionScript 3 library to Generate ZIP file with Simple Interface

Because a zip file permits a number of compression algorithms so a ZIP file contains one or more files. FZip is a cute little Actionscript 3 class library, it parses ZIP archives progressively, allowing access to contained files while the archive is loading(@see Actionscript 3 class zip library–FZip).

Now we will introduce an other actionscript zip library: ASZip.  You can generate ZIP files from ActionScript 3 with ASZip. ASZip uses the native gzip (Deflate) compression from the flash.utils.Bytearray.compress() method. More compression algorithms will be added in the future. ASZip has simple interface to add different types of files and directories.

Read More

How to Wait or Sleep in Flex/ActionScript

Categories Flex | 28/08/09 | 14,287 views   |  tags: , , ,
How to Wait or Sleep in Flex/ActionScript

If you want to upload a big file to server or do a long time action in Flex/ActionScript like HTTPService to communicate with an external server that hosts the database, a time delay function like Sleep() will be needed.

So, is there a sleep function in flex 2 ? Run multi-thread, one sleep and wait the result of this thread and the other will be continue.

Unfortunatly, because the flash player, from our perspective, is single threaded so we can not do that.

Read More

An example of How to load FlashPaper in Flex(with source code)

Categories Flash, Flex | 15/08/09 | 3,903 views   |  tags: , ,
An example of How to load FlashPaper in Flex(with source code)

FlashPaper is very useful, we can create web-ready Flash documents or secure, compact PDF files from any printable document in just one click with FlashPaper.  The following is some main feature of FlashPaper introduced on the offical site:

  • Easily create or e-mail any Microsoft Office document as a Flash document or PDF
  • Instantly secure sensitive medical, legal or business documents
  • Streamline document distribution with highly compressed files
  • Create universally accessible files that are viewable on any platform
  • Quickly capture web pages and HTML
  • Create online newsletters, flyers and marketing materials

Read More