I'm trying to set a textFormat on a textInput component. Like so:
var testText:TextInput = new TextInput();
testText.text = "TESTING";
addChild(testText);
var tf:TextFormat = new TextFormat();
tf.leftMargin = 50;
tf.size = 20;
tf.color = 0xFF0000;
testText.setStyle("textFormat", tf);
According to the adobe documentation (and numerous examples on the web) this should be possible. Yet the text never has its style applied. I've tried with both a spark and an MX TextInput (and even a TextArea) yet the results are always the same. Am I missing something? Or is this no longer a supported operation?