[swfmill] Rotation attribute

Mark Winterhalder mark13 at gmail.com
Thu Feb 7 07:46:11 PST 2008


On Feb 7, 2008 4:07 PM, Paul Colomiets <pc at gafol.net> wrote:
> Hi!
>
> Firstly I've updated swfmill reference on osflash
> (http://osflash.org/swfmill),
> to reflect SVG import info. I'd be happy if someone look at that since
> that info is
> based only on my experience. Also I don't know if certain features
> available only
> in preview version not in stable release.

Thanks for updating the wiki!

If you want to check for supported attributes, the ultimate source is
still the source:
<http://swfmill.org/trac/browser/trunk/src/xslt/simple-elements.xslt>
It's fairly readable and easy to understand.

> I'm also wondering if there is support for rotation attribute in place tag
> (or somewhere in xml)?

There is no direct support for a rotation attribute, but for x, y,
scalex, scaley, skewx and skewy, which amounts to a transformation
matrix. So, if you want to rotate, it /should/ be (not tested):

scalex = cos( angle )
scaley = cos( angle )
skewx = -sin( angle )
skewy = sin( angle )

Admittedly, this is not as straight forward as one would wish for...

Mark



More information about the swfmill mailing list