Capitalize First Letter in Word – Actionscript 2

You have a string and you want to capitalize the first character but have the rest of the word in lowercase.

DO THIS!

myStringVar = myStringVar.substring(0, 1).toUpperCase()+myStringVar.substring(1);

Leave a Reply

Your email address will not be published.