Formatting a Flash TLF which is on the stage
I am using Flash CS5.
I have the simplest possible FLA. It has a TLF on the stage.
The TLF has a font size of 32 and contains a few characters. Its instance name is "txt".
The following AS3 code:
trace(txt.defaultTextFormat.size);
trace(txt.direction);
Produces:
12
null
Which is plain wrong. When I try to change the direction with:
txt.direction = "rtl";
nothing happens.
However, when I create a new TLFTextfield using code alone everything works well.
I need to be able to edit stage-based TLFs as well as I do with dynamic ones. How can I do it?
