Monday, September 15, 2008

AS3 Class: Save As JPG

I found some very useful open-source classes for use with Flash or Flex. This library may be used with my old dress-up game project, Ultimate CharGen, to give it a "Save as..." feature. Furthermore, this library includes hashing capabilities, but I will not be using such things outside good ol' PHP.

I'm sure a few people will come here looking for a way to use the classes, so here's a brief example. You cannot save images directly from Flash unless you use your OS's "print screen" key. However, the JPGEncoder class makes it very easy to save images using PHP.

I'm looking for a better alternative. I want to make a vector-based art tool for fun, but there's little sense making one if I need PHP or some kind of image editor to properly save files. I want everything to be done within one program.

1 comment:

FJGamer - RuneScape Dragoons animator said...

Easier-to-get PHP-required class: http://blog.stroep.nl/2008/08/as3-imagesaver-class-v10/