Very short snippet: cutString ()
Wednesday, June 4, 2008 Useful and fast! With the values Number of Actionscript, for example, is a vital aid for "print" on video.
Actionscript:
- / *
- ** @ Name: cutString ()
- ** @ Description: cut a string for n chars
- * /
- s: String , v:uint = 4 ) : String { protected function cutString (s: String, v: UINT = 4): String (
- s. length > v ) ?s. substr ( 0 ,v ) :s ) ; return ((s. length> v)? s. substr (0, v): s);
- )
Often used in the version sub() _s()


















Leave a comment