Return to Snippet

Revision: 6654
at June 4, 2008 19:26 by gfazioli


Initial Code
/*
** @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 );
}

Initial URL
http://www.undolog.com/2008/06/04/very-short-snippet-cutstring/

Initial Description

                                

Initial Title
Very short snippet: cutString()

Initial Tags

                                

Initial Language
ActionScript 3