Hi Rovi,

2009/10/13 rovi_ophone <rovi_oph...@163.com>:
> I am very excited to find out swfmill can convert between swf and xml. It is
> a great tool!
> I have hard time to find the relevent document listed the features it
> supports, can someone let me know does it support actionscript 2/3, flex and
> basic features (path, shape...)?

swfmill is capable of representing all those things in XML, but
possibly not in the sense that you would like. swfmill's XML is a 1:1
representation of the internal structure of a swf. It isn't capable of
decompiling ActionScript code, and it isn't capable of converting a
swf generated using Flex back to the original MXML.

swfmill is capable of representing ActionScript in XML, but it does so
by assigning an XML tag to each AVM bytecode. Despite being XML, this
is still a very low level representation. Similarly, MXML compiles
down to a bunch of shapes, sprites and AVM bytecode inside the swf.
swfmill can represent shape and sprite definitions, and AVM bytecode
in XML format, but that's still a much lower level format than the
original MXML.

Binary data within a swf that doesn't adhere to the swf tag structure
-- for example JPEG or MP3 data -- is represented by swfmill as base
64 encoded binary data. It's reasonably simple to base 64 decode this
data and extract it to individual files, if you know what you're
doing, but swfmill alone won't make it any more editable.


However, the swfmill simple dialect does give you a reasonably simple
(if not very well documented) way to construct a swf from XML
instructions. You can convert from the swfmill simple dialect to swf,
but you can't convert a swf to the simple dialect. The simple dialect
supports (in swfmill trunk, upcoming 0.3.0 release and unofficial
Windows binaries at <http://www.danielcassidy.me.uk/swfmill>):

* create compressed/uncompressed SWFs with any version number
(although only 6-10 are sensible choices).
* set framerate/size/background colour.
* create movie clips with multiple frames
* create textfields.
* import other SWFs as sprites or as libraries.
* import SVG as sprites (many but not all SVG features supported).
* import MP3, WAV sounds.
* import JPG & PNG images directly or as sprites (PNG images are
converted to Flash's own internal lossless format).
* import TTF fonts.
* import arbitrary binary data.
* place objects on the stage or within the frames of movie clips, with
transformations.
* and a few other things.

In particular you can't author SWF shape data directly using only the
simple dialect.

Hope this helps,
Dan.

_______________________________________________
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to