• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Tests/H07-Apr-2017-15672

native/H07-Apr-2017-2,6881,128

MANIFESTH A D07-Apr-20171 KiB6160

MakefileH A D07-Apr-2017916 5847

READMEH A D07-Apr-20172.4 KiB8354

SWFAction.javaH A D07-Apr-2017795 428

SWFActionI.javaH A D07-Apr-2017682 362

SWFBitmap.javaH A D07-Apr-20171.7 KiB8133

SWFBitmapI.javaH A D07-Apr-2017780 364

SWFButton.javaH A D07-Apr-20171.9 KiB8334

SWFButtonI.javaH A D07-Apr-20171.6 KiB6319

SWFColor.javaH A D07-Apr-20171.6 KiB9146

SWFDimensionableI.javaH A D07-Apr-2017707 395

SWFDisplayItem.javaH A D07-Apr-20174.1 KiB14077

SWFDisplayItemI.javaH A D07-Apr-20171.8 KiB7224

SWFException.javaH A D07-Apr-2017824 4510

SWFFill.javaH A D07-Apr-20172.8 KiB11855

SWFFillI.javaH A D07-Apr-20171.8 KiB7325

SWFFont.javaH A D07-Apr-20171.8 KiB8639

SWFFontI.javaH A D07-Apr-2017801 436

SWFGradient.javaH A D07-Apr-20171.3 KiB6125

SWFGradientI.javaH A D07-Apr-2017856 384

SWFMatrix.javaH A D07-Apr-20172.8 KiB14279

SWFMorph.javaH A D07-Apr-20171.3 KiB6521

SWFMorphI.javaH A D07-Apr-2017806 404

SWFMovie.javaH A D07-Apr-20173.7 KiB14579

SWFMovieClip.javaH A D07-Apr-20172.1 KiB9847

SWFMovieClipI.javaH A D07-Apr-20171,018 468

SWFMovieI.javaH A D07-Apr-20171.5 KiB6117

SWFObject.javaH A D07-Apr-20173.3 KiB17194

SWFObjectI.javaH A D07-Apr-20171.4 KiB5411

SWFShape.javaH A D07-Apr-20176.6 KiB258162

SWFShapeI.javaH A D07-Apr-20172.1 KiB6925

SWFSound.javaH A D07-Apr-2017828 428

SWFSoundI.javaH A D07-Apr-2017706 362

SWFSoundStream.javaH A D07-Apr-2017418 308

SWFText.javaH A D07-Apr-20172.3 KiB10249

SWFTextField.javaH A D07-Apr-20173.2 KiB11363

SWFTextFieldI.javaH A D07-Apr-20171.9 KiB7429

SWFTextI.javaH A D07-Apr-20171 KiB5012

SWFVideoStream.javaH A D07-Apr-2017714 3823

README

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