Text Padding and Margins


/ Published in: ActionScript 3
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. var padFormat:Number = new Number();
  2. padFormat = 10;
  3.  
  4. your_txt.setStyle("textPadding",padFormat);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.