/ Published in: ActionScript 3
Expand |
Embed | Plain Text
private function truncate(str:String):String{ if(str.length > 30){ str = str.slice(0,30); str += "..."; } return str; }
You need to login to post a comment.
private function truncate(str:String):String{ if(str.length > 30){ str = str.slice(0,30); str += "..."; } return str; }
You need to login to post a comment.