[swfmill] rotation example/patch

Icey Shard iceyshard at gmail.com
Sun Jan 25 08:06:56 PST 2009


Hi.
Ralf's patch seems to be the 4th attachment to
http://osflash.org/pipermail/swfmill_osflash.org/2007-April/001244.html,
but, truth to be told, I'm not sure how to apply it. And even if
applied, it seems to be very basic (overriding scale and skew
parameters).

For my use, I created a custom xslt stylesheet. A variant is included
as attachment with this message.
It adds "rotation" parameter, that works as if scalex/y and skewx/y
were applied first and then the object was rotated. The object is also
scaled by "scale", independently of scalex/y (they no longer override
the "scale"). Reverse order can be achieved by encapsulating one
sprite in another.

The stylesheet also includes a couple other of my
customizations/hacks/bugfixes: <remove depth="n"/> tag, and replace
parameter for the <place /> tag, for use with animated sprites (use
replace="1" in that case).

Also, last month I posted some sample code where rotation was achieved
through the use of action script, but it's probably better to avoid
it.

Hope that helps.

On Tue, Jan 20, 2009 at 10:50 AM, gabriel <gbelvedere at gmail.com> wrote:
> Hi all,
>
> I've read in the list archives that Ralf wrote a patch for doing the
> rotation of a clip easier but I could'nt find it.
>
> Can anybody point me in the right direction?
>
> and by the way, is there any -good- repository of swfmill examples? The
> information is somehow scattered
>
> Thank you
>
> _______________________________________________
> swfmill mailing list
> swfmill at osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rotation.rar
Type: application/rar
Size: 8636 bytes
Desc: not available
URL: <http://osflash.org/pipermail/swfmill_osflash.org/attachments/20090125/36b5340d/attachment.bin>


More information about the swfmill mailing list