1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
LICENSE
--------
This software is copyright 2001 E-Publishing Group Inc. Permission is granted
to use the code and/or make changes to the code provided that the original
copyright and author attribution is included in each file.
The license does not make any warranty of liability, merchantability, or
fitness for any specific purpose.
Please contact the author <jshore@e-shuppan.com> if you have any questions
about the license or the software.
BUILDING
--------
Build the java library and the native library, running make in the java
directory (the current directory) and "native" directory respectively.
The java build will produce a jswf.jar file which can be included in your
classpath. The native directory creates a libjswf.so file. This can be
placed anywhere (I typically put it in the same installation directory as
my jar files).
USING IT
--------
To compile or run against this library should do the following (csh):
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:<directory-with-.so-files>
java or javac -classpath <old-path>:<jar dir>/jswf.jar
Make sure you also include libming.so in the directory with your libjswf.so.
Alternatively, add the ming library to your LD_LIBRARY_PATH.
NOTES
-----
The Java class heirarchy and methods closely mirror the PHP and python
interfaces. I've added some additional convenience functions and new
functionality.
Also, have separated the implementation from the interface definition. This
makes browsing the API easier and also allows for other implementations.
Methods that result SWF objects will return SWF interfaces rather than the
explicit objects. For example:
SWFMovie movie = new SWFMovie();
...
SWFDisplayItemI item = movie.add (shape);
item.moveTo (23,30);
The add method returns SWFDisplayItemI rather than SWFDisplayItem. No big
deal. Just be aware that interfaces (identified with an "I" suffix) are
used most of the time.
EXTENDED API
------------
If you are interested in more advanced functionality, we have a not-yet
publicly available high-level API built on top of this. Currently includes
the following:
- supports wide variety of image formats (ming only supports jpeg and dbl)
- timeline & animation classes
- text and object align to arbitrary paths (and path animation)
- movie (mpeg, qt, avi, etc) to flash (in progress)
- others
Please contact me if you would like more information about this.
CONTACT
-------
Jonathan Shore <jshore@e-shuppan.com>
|