Text direction not working in pure AS3 project compiled with Flash CS5
Any idea why this does not work? The text direction remains LTR no matter what I do. I tried moving around at what point the text is set with no luck.
The only difference I get is this text:
Registered TRADEMARK<font face="Lucida Sans Unicode">®</font>
Is rendered as:
®Registered TRADEMARK
protected function configureText(title:String):void
{
this.textField = new TLFTextField();
this.textField.autoSize = TextFieldAutoSize.LEFT;
this.textField.mouseChildren = false;
this.textField.mouseEnabled = false;
this.textField.selectable = false;
this.textField.wordWrap = false;
this.textField.htmlText = title;
var format:TextLayoutFormat = new TextLayoutFormat();
format.color = this.defaultTextColor;
format.direction = Direction.RTL;
format.fontFamily = "Arial";
format.fontSize = this.size - 4;
format.textAlign = TextAlign.RIGHT;
this.textField.textFlow.hostFormat = format;
this.textField.textFlow.flowComposer.updateAllControllers();
this.addChild(this.textField);
}
Compiled with Flash CS5 11.0.2.489
