Skip to main content
Participating Frequently
November 6, 2009
Question

TextFlow Direction

  • November 6, 2009
  • 1 reply
  • 589 views

Hello,

I am building an editor component and there is a control that lets the user toggle the direction of the text flow between

left to right and right to left.

My simple code for this is as follows:

        override public function execute_off() : void
        {
            this.label = "\u2192";
            textArea.textFlow.direction = Direction.LTR;
        }
       
        override public function execute_on() : void
        {
            this.label = "\u2190";
            textArea.textFlow.direction = Direction.RTL;
        }

Where "this" in this instance is a class that extends ToggleButton.

This feature works until I add some other formatting to some text.  From that point forward, setting the textArea.textFlow.direction property is ignored.

Is this a bug or are there better ways to go about doing this?

This topic has been closed for replies.

1 reply

Adobe Employee
November 10, 2009

Can't really see why this would fail - can you create an example?  Maybe export the markup before and after a direction change that doesn't work?

Thanks,

Richard