/ Published in: ActionScript 3
URL: http://www.undolog.com/2008/06/04/very-short-snippet-cutstring/
Expand |
Embed | Plain Text
/* ** @name : cutString() ** @description : cut a string for n chars */ protected function cutString(s:String, v:uint = 4):String { return ( (s.length> v)?s.substr(0,v):s ); }
You need to login to post a comment.
