On 4/13/07, Christian Giordano <[EMAIL PROTECTED]> wrote:
> Hi guys, I would need to generate a swf with embedded an image and
> rotated/colored texts. I presume the latter is not possible to do in
> simple mode (I read about the rotation patch but I would need also to
> set some text formatting, and I never compiled swfmill).
> Where could I then find some instructions to learn the xml api to
> obtain what I would need?

I think this actually is possible in simple. There's <transform/> with
attributes scalex, scaley, skewx and skewy. If I'm not mistaken, this
is a normal 2D transformation matrix.

As a 2D matrix, a rotation would be:

cos(a) -sin(a)
sin(a) cos(a)

where 'a' is the angle in radians. The two cos' are scalex and scaley,
I suspect the other two are skew. Maybe try it and see if it works.

You can find <transform/> in the xslt that transforms swfml-s to swfml-l here:
<http://swfmill.org/trac/browser/trunk/src/xslt/simple-elements.xslt>

If that doesn't work, the easiest way to get the proper swfml-l is to
find (or create) an example of what you want to do and convert it with
swf2xml to see how it works.

HTH,
Mark

_______________________________________________
swfmill mailing list
[EMAIL PROTECTED]
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to