AS2 Kerning dynamic text fields


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



Copy this code and paste it in your HTML
  1. function kernText(whichField, kerning)
  2. {
  3. whichField.html = true;
  4.  
  5. var newFormat:TextFormat = new TextFormat();
  6. newFormat.letterSpacing = kerning;
  7. //newFormat.font = "Arial";
  8.  
  9. whichField.setTextFormat(newFormat);
  10. }

URL: http://winkyboy.blogspot.com/2007/12/programming-flash-kerning-dynamic-text.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.