How to enable special characters in var txt:TextField = new TextField(); in action script 3.0.
var tf:TextFormat = new TextFormat();
tf.font = "Verdana";
tf.size = 12;
tf.bold = true;
tf.align = "left";
var txt:TextField = new TextField();
txt.text = _label;
txt.embedFonts = true;// this is necessary but one more step is required
txt.autoSize = TextFieldAutoSize.LEFT;
txt.antiAliasType=AntiAliasType.ADVANCED;
txt.multiline = true;
txt.selectable = false;
txt.setTextFormat( tf );
I embedded the "Verdana" font in ma fla named "Verdana". But my issue is the text filed is not showing the
äÄéöÖüÜß
How can i embed in codes, i dont use the text filed from the component library. everything was created only through action script 3.0 code.