file system

Image Saver Class

With the Image Saver class you can save JPG or PNG images directly from your flash file. Here are the feature as the author describes them:

  • Save a MovieClip, Sprite, Shape, Bitmap, Textfield or other kinds of displayObjects.
  • It doesn’t matter where or how your object is positioned on the stage, it gets the right bounds.
  • Never worry about bytearray’s / encoding anymore.
  • Save your displayobject as JPG or PNG (using Adobe’s encoders

Very handy!

Script Image: 
imageSaver.jpg
Script author: 
Mark Knol

PNG encoder

Using this class you can encode PNG files in AS3. You can choose to encode to 32bit, 24bit or 8bit images. Great class by Iiley Chen.

Script Image: 
as3-png-encode.jpg
Script author: 
iiley.chen

MySQL Actionscript Connectivity

Using these classes your Flash/Air/Flex application can talk to a MySQL server directly, without the need of an backend interface.

Script Image: 
mysql-logo.jpg
Script author: 
maclema, brandon.alexander

Exif library for AS3

Is an as3 libary for extracting Exif information from images. It is free under MIT license.

Script Image: 
slr.jpg
Script author: 
shichiseki

AS3 XLS parser

Using this class you can parse - read and write XLS files using AS3.

Since I know this is the first class of this type. How the author describes it: "So far it supports reading text, numbers, formulas, and dates from Excel version 2.x-2003 and writing text, numbers, and dates. Formulas also update to reflect changes in cells they reference."

Thanks sigfrid3141 for sharing this class!

Script Image: 
Oficina-XLS-128x128.png
Script author: 
sigfrid3141

AS3 Zip Library

If you need to reed a zip archive into flash this is the class you want to use.

There are also other classes, which are faster but this does not require Adler32 checksum contained in ZIP archives.

You can also use this class to create the zip files.

Script Image: 
util_1.jpg
Script author: 
David Chang

Base64 encoder/decoder class

There are many possible use cases for an AS3 Base64 encoder / decoder class.

Let me introduced one of them. I had to distribute flash classes without attaching an image file to them. What I did was to put the image (a small logo) inside of an .as file. I simply Base64 encoded the image (using an online service) and then copied and pasted the string into the .as class.

I am sure you can think of even more situations where this class comes handy.

You can encode any file online to base64 using this site: http://www.motobit.com/util/base64-decoder-encoder.asp

Script Image: 
util_1.jpg
Script author: 
Steve Webster

Bulk Loader

Bulk loader is a very useful class for loading multiple images / swfs/ mp3 or other files into your project. It provides an easy interface to monitor the progress, to pause and resume or to stop loading the "bulk" or an individual file.
The class is very well documented, extremely easy to use. Using this class you will virtually save hours of development time.

Script Image: 
util.jpg
Script author: 
Arthur Debert

Getting JPG dimensions without loading the entire file

Antti Kupila has posted a very useful utility for fetching jpg dimensions without the need to load the entire file.

This may come very handy in cases when you want to draw background or position other screen elements based on the jpg dimensions.

According to the author the class does not work with some jpg files (which probably do not have correct headers) so its 100% reliable only with jpegs you know / you have created.

Thanks Antti for sharing this class.

Script Image: 
util.jpg
Script author: 
Antti Kupila

ASZip

Another great library by Thibault Imbert is the ASZip library. With it's help you can create zip files using actionscript.

It has simple interface to add different types of files and directories.

Again, thanks Thibault for the great work!

Script Image: 
aszip-0.jpg
Script author: 
Thibault Imbert