having the same problem!!!! help!!!
the bug happens even if the direction stay in left to right.
just set the align to right and you will see the problem!!
var myTLFTextField:TLFTextField = new TLFTextField();
myTLFTextField.x = 10;
myTLFTextField.y = 10;
myTLFTextField.width = 200
myTLFTextField.height = 120;
myTLFTextField.multiline = true;
myTLFTextField.wordWrap = true;
myTLFTextField.border = true;
myTLFTextField.borderColor = 0xff0000;
var myFormat:TextLayoutFormat = new TextLayoutFormat();
myFormat.textIndent = 2;
myFormat.color = 0x336633;
myFormat.fontFamily = "Arial";
myFormat.fontSize = 13;
myFormat.textAlign = TextAlign.RIGHT;
var myTextFlow:TextFlow = myTLFTextField.textFlow;
myTextFlow.hostFormat = myFormat;
now i found a "bandage" solution:
if the fontSize set to 13 and the height of the field to 16 it work perfect
and if the height of the field close to fontSize it work
but i wont a multiline textfield with something like 120px height with small font size.
if u only puplish your fla file in flash cs5 this problem will be fixed (but i cant find any thing to correct this bug in flash cs5.5 or cs6 )
i'm facing the same problem, tried many suggested solutions asked many flash developers, but unfortunately nothing worked
have you figured out the isuue and have a reliable solution?
that would be highly appreciated
thanks in advance
I've had this same problem. My fix is posted over here: https://github.com/alexdeefuse/TLFTextField-fix
I tested it only on single line TLFTextFields.
If you take a look at the fix, what I'm doing is go down the display list of the TLFTextField and correct the position of the SimpleButton inside there. (the button is responsible for the user input and TLF's extend DisplayObjectContainers).
Hope it helps!
Regards, Alex Ghiu
Has this been solved by Adobe yet? This is incredibly frustrating.
I have TLF text that is being named using AS, but since the nav has different line lengths, they don't stay right aligned and end up all over the place. It seems to me this is just a bug in Adobe's coding, but I don't understand why it hasn't been fixed after so much time.
Do I have to completely redesign my FLA just to accomodate for this error?