Posted By

jafar on 10/05/10


Tagged

text margins padding


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jafar
alptugan


Text Padding and Margins


 / Published in: ActionScript 3
 

If you ever wanted to add padding to a Text Input instance, use the \"textPadding\" Style under the Text Input Class like so.

  1. var padFormat:Number = new Number();
  2. padFormat = 10;
  3.  
  4. your_txt.setStyle("textPadding",padFormat);

Report this snippet  

You need to login to post a comment.