Revision: 26501
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 29, 2010 09:08 by adrianparr
Initial Code
var myString:String = "hello"; trace(myString); myString = catipaliseFirstLetter(myString); trace(myString); function catipaliseFirstLetter($s:String):String { return $s.substring(0, 1).toUpperCase() + $s.substr(1, $s.length-1); } // OUTPUT // hello // Hello
Initial URL
Initial Description
Initial Title
AS3 Capitalise the First Letter of a String
Initial Tags
Initial Language
ActionScript 3