/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function firstLineLength(text:String):int { var reg:RegExp = /^[\S ]*/m; var length:int = String(reg.exec(text)).length; return length; }