I have a textinput component on my stage with an instance name of “myTxt”
I would like to add some left padding to the contents of this textfield. I’ve tried:
myTxt.setStyle("textPadding", 5);
But it adds top (and I assume bottom and right) padding in addition to the left padding. What is the best way to simply add left padding to the textfield’s contents?
Thanks for your help!
You use a TextFormat object for this.
Edit: Added links to TextField and TextFormat
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/text/TextFormat.html
Update: For a TextInput