JavaSWF9 - Java for SWF library PDF Print E-mail

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.*;
 
SWF9 swf = new SWF9();
swf.makePNGs("folder", "image", "320x240", 25, "out.swf");

 

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.*;
 
SWF9 swf = new SWF9();
swf.makeJPEG2s("folder", "image", "320x240", 25, "out.swf");

 

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.*;
 
SWF9 swf = new SWF9("in.swf");
swf.makeTHUMB("thumb.png", 10);

 

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

 

Comments

avatar Deepak
0
 
 
i have one swf file with me which is generated by pdf 2 swf converter but when i'm using swf 9 to create thumbnail it is giving me exception "java.lang.ArrayIndexOutOf BoundsException" is it like swf9 can convert only swf generated by him only ?
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar kombi servisi
0
 
 
video izleyebilir video indirebilir, video seyredebilirsin iz http://www.sanalhane.com diyet, yemek tarifleri, kadınca, danetl örnekleri http://www.sevgilerimle.net video izle, vidyo izle, video seyret, dizi izle, dizi seyret http://www.vidyo.net kombi servisi, kombi bakımı, kombi tamiri, kombi arıza, kombi arızaları, http://www.ustatamirci.com kombi tamircisi, kombi tamircileri, kombi servisleri, kombi arızaları, http://www.kombitamircisi.com eca, eca kombi servisi, eca kombi bakımı, eca kombi arıza http://www.ecakombiservisi.gen.tr arda, arda turan, arda turan video, arda turan izle, arda turan golleri, arda turan hayatı, galatasaray http://www.ardaturan.net dizi, dizi izle, canlı dizi, online dizi, full dizi, dizi seyret http://www.sh-tsg.com kombi, kombi bakım, kombi arıza, kombi servis, kombi tamir http://www.ustatamirci.net iddaa, iddaabul, iddaa tahminleri, iddaa kuponları, iddaa tahmin, canlı sonuçlar, banko kupon, can tango, rıdvan dilmen http://www.iddabul.com trafo, regülatör, transformatör, kombi regülatörü, havuz trafosu, http://www.ilgintrafo.net
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
avatar Ben
0
 
 
Hello,
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
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Cancel
Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
Last Updated on Thursday, 05 February 2009 17:03