Yes, the default rotation method on LzView (inherited by lzText) and
LzSprite (inherited by lzTextSprite) just sets the rotation property on the
whole sprite.

I don't know why setting rotationZ works, but plain "rotation" causes the
device text to vanish.

Maybe we can just replace the line in LzSprite that sets rotation to set
rotationZ instead??


On Mon, Jan 31, 2011 at 7:33 PM, Raju Bitter <
[email protected]> wrote:

> By "not working" I mean that the text disappears as soon as I set the
> rotation property on the <text> element. Since Flash Player 10
> supports the rotation, why does the text disappear when the text view
> is rotated? Do you control the visibility of the textfield based on
> the outer view rotation?
>
> On Tue, Feb 1, 2011 at 1:23 AM, Raju Bitter
> <[email protected]> wrote:
> > Henry,
> >
> > I just saw that text rotation is not working in the AS3 based runtime
> > (SWF10). What is the reason for that? Flash 10 supports rotation of
> > text without embedding fonts.
> >
> > I've created an improvement request, with a demo attached. Flash
> > Player 10 added a rotationZ property to a TextField. That means,
> > saying
> >
> > someText.getDisplayObject().textfield.rotationZ = 30;
> >
> > will rotate the text. Works for Chinese/Korean/Asian languages as
> > well, as long as the font is on your system.
> >
> > Depending on the font size, another approach is better (using a
> > TextBlock object), as described here:
> >
> http://www.yswfblog.com/blog/2009/05/21/the-knack-to-rotating-dynamic-text-in-flash-10/
> >
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to