Sorry, rotationZ, it's not rotateZ :-)
On Tue, Feb 1, 2011 at 5:21 PM, Raju Bitter
<[email protected]> wrote:
> Yes, looks like rotateZ instead of rotate on LzSprite is the solution.
> But again, that only works for SWF10.
>
> On Tue, Feb 1, 2011 at 5:02 PM, Henry Minsky <[email protected]>
> wrote:
>> Well, I'm not sure how to expose this feature in a consistent way.
>>
>> What if we just made LzSprite use rotationZ instead of rotation? Would that
>> degrade the speed
>> and quality of the rendering in general?
>>
>> If we override LzTextSprite to use rotationZ, that will work as long as the
>> device text is inside of a non-rotated parent, but if you rotate an
>> enclosing view, the device text will still vanish, unless you rotated that
>> parent view
>> with rotationZ instead of rotation. Maybe this is the best compromise for
>> now?
>>
>>
>>
>>
>> On Tue, Feb 1, 2011 at 4:28 AM, Raju Bitter
>> <[email protected]> wrote:
>>>
>>> Here's the link to the JIRA entry:
>>> http://jira.openlaszlo.org/jira/browse/LPP-9727
>>>
>>> On Tue, Feb 1, 2011 at 1:52 AM, Raju Bitter
>>> <[email protected]> wrote:
>>> > When you set rotationZ on the textfield, that means the sprite content
>>> > is rendered into a bitmap. It would probably be best to distinguish
>>> > between SWF9 and SWF10 for rotation, using rotation for SWF9, and
>>> > rotationZ for small fontsizes with SWF10. I don't know how the
>>> > rotationZ will behave with embedded fonts, you might want to test that
>>> > first.
>>> >
>>> > And for larger fonts, instead of using a TextField you'd probably want
>>> > to use the TextBox factory to create a TextLine object, as described
>>> > here:
>>> >
>>> > http://www.yswfblog.com/blog/2009/05/21/the-knack-to-rotating-dynamic-text-in-flash-10/
>>> >
>>> > The screenshot in this blog post shows the difference in text
>>> > rendering (upper text with simple rotationZ is a bit blurry with
>>> > larger fonts).
>>> >
>>> > On Tue, Feb 1, 2011 at 1:37 AM, Raju Bitter
>>> > <[email protected]> wrote:
>>> >>
>>> >> http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTLFTextFieldHostFormat.as
>>> >> I only found this function dealing with rotation in all classes
>>> >> dealing with text.
>>> >>
>>> >> public function get textRotation():*
>>> >> {
>>> >> return undefined;
>>> >> }
>>> >>
>>> >> On Tue, Feb 1, 2011 at 1:33 AM, 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]
>>
>>
>>
>