Posted By

hejaaa on 05/17/11


Tagged

text line length first


Versions (?)

Get length from first line textfield


 / Published in: ActionScript 3
 

  1. function firstLineLength(text:String):int {
  2. var reg:RegExp = /^[\S ]*/m;
  3. var length:int = String(reg.exec(text)).length;
  4. return length;
  5. }

Report this snippet  

You need to login to post a comment.