| JavaSWF9 - Java for SWF library |
|
|
|
|
JavaSWF9 is a collection of Java classes useful to manipulate SWF files up to version 9. This work is in progress. The repository is hosted at Google Code and if you want to contribute just let me know. There's an early version of the documentation, also available for download.
USAGE EXAMPLES A. BUILD SWF FROM IMAGE In this example we have a set of images stored in a local folder. We can build a SWF movie simply calling SWF9.makePNGs if no output compression is required, or SWF9.makeJPEG2s to create a compressed movie, as follow:
import swf9.*;
The previous snippet create the SWF 9 uncompressed movieclip "out.swf" starting from the image sequence "image001.*, image002.*, etc." (so the common identifier is "image") stored in the subfolder "folder". The framerate will be 25fps and the framesize 320x240px.
import swf9.*;
The previous snippet create the SWF 9 compressed movieclip "out.swf" starting from the image sequence "image001.*, image002.*, etc." (so the common identifier is "image") stored in the subfolder "folder". The framerate will be 25fps and the framesize 320x240px.
B. MAKE A THUMBNAIL OF THE SWF Suppose we have a SWF movie and for some reason we want to create the associated thumbnail.
import swf9.*;
The previous snippet create a thumbnail of the SWF 9 movieclip "in.swf" and save it as "thumb.png". The thumbnail contains the frame number 10 of the clip.
DOWNLOAD The library package can be downloaded from Google Code
|
| Last Updated on Thursday, 05 February 2009 17:03 |




Comments
I tried it out and the examples work fine.
But is it possible to decompile/deconvert/parse an existing swf-file?
If Yes please tell me how. I only could read out the header information.
Greetz,
Ben