The following setting of textformat does not change any of the text's properties:
this.createEmptyMovieClip("mcX", 0);
mcX.createTextField("tfX", 0, 200, 0, 200, 20);
var tf:TextFormat = new TextFormat();
tf.font = "Verdana";
tf.size = 30;
tf.color = 0xff0000;
tf.align = "right";
tfX.setTextFormat(tf);
mcX.tfX.text = "Hi";
Why?
this.createEmptyMovieClip("mcX", 0);
mcX.createTextField("tfX", 0, 200, 0, 200, 20);
var tf:TextFormat = new TextFormat();
tf.font = "Verdana";
tf.size = 30;
tf.color = 0xff0000;
tf.align = "right";
tfX.setTextFormat(tf);
mcX.tfX.text = "Hi";
Why?