$Header: /home/dan/cvs/swfmill/README,v 1.12 2005/05/29 19:32:15 dan Exp $
WHAT IS SWFMILL?
swfmill is a tool to process Shockwave Flash(TM) (SWF) files.
It can convert SWF from and to an XML-dialect called "swfml",
which is closely modeled after the SWF file format.
It also provides a libxslt-based XSL transformator that
supports an extension ("swft") which helps with generating
IDs for SWF objects and can import an SWF as XML using an
XPath command (swft:document()).
As a simple application of such functionality, swfmill can
pack together a bunch of media files (jpeg and png images,
other SWF movies, TrueType fonts) into an SWF as "library
objects" for your attachMovie() pleasure.
WARNING
swfmill is alpha-quality software. It might well not work
as it should. Please report your experiences if that seems
to be the case, send in (if possible small) SWFs or patches.
DEPENDENCIES
swfmill requires, and the windows binary release contains
code from:
libxml2 - (C) 1998-2003 Daniel Veillard.
libxslt/exslt
- (C) 2001-2002 Daniel Veillard.
zlib - (C) 1995-2004 Jean-loup Gailly and Mark Adler.
freetype - (C) 1996-2000, 2002, 2004 David Turner,
Robert Wilhelm, and Werner Lemberg.
libpng - (C) 2004 Glenn Randers-Pehrson.
my references to the SWF format were:
Alexis' SWF Reference
http://sswf.sourceforge.net/SWFalexref.html
SSWF sources
http://sswf.sourceforge.net/
MTASC sources
http://mtasc.org/
COMPILING AND INSTALLING
on linux, use the "GNU-standard"
./configure && make && make install
on windoze, if you have use for a tool like this,
you know better than me where to put swfmill.exe.
USAGE
see swfmill -h for general usage options.
convert an SWF (foo.swf) to XML:
swfmill swf2xml foo.swf bar.xml
convert such XML to SWF:
swfmill xml2swf bar.xml meep.swf
SIMPLE SWFML DIALECT
for library generation, and probably other fun swf
construction, swfmill supports a simplified XML
dialect. to create a library swf that includes some
assets, construct an XML file that looks like this:
and run swfmill:
swfmill simple output.swf
output.swf should now contain the specified assets (the jpg,
pngs, other swf and font) specified.
Some notes:
* the file paths in the simple xml are relative to
where you start swfmill.
* any that is placed within a
tag will be exported for attachMovie
with linkage id == their id attribute. for the above
example, you can attach library/testjpg.jpg with:
_root.attachMovie("jpg","foo",1);
* the font is available by its id also, and will contain
only the characters specified in its glyph attribute.
make sure you specify the correct encoding in the
processing instruction for special characters.
SHARED LIBRARIES
swfmill supports both generation and use of shared libaries.
To generate a shared libary, simply put your assets in a
tag just as for attachMovie (see above).
To use a shared library, the library swf has to be available
both locally and under its "public" URL. Assuming you have
put your library on http://foo.com/library.swf, and the swf
is also in the library/ subdirectory of where you run
swfmill, put this in your definition XML:
That should import all symbols that are exported in
library.swf, so they should be available under their name
with attachMovie(). Note: this only works with proper
assets, not with fonts. If you know how to use a font
from a shared library, please tell me.
COPYRIGHT
swfmill is (C) 2005, daniel fischer.
swfmill is licensed to you under the GPL.
see COPYING for details.
GETTING (INVOLVED)
updates and stuff will be available at:
http://iterative.org/swfmill/
to praise or complain, send mail to:
dan@subsignal.org
there is a mailing list for swfmill on osflash.org:
http://osflash.org/mailman/listinfo/swfmill_osflash.org