Right you are! Thanks! BLITZ | Steven Sacks - 310-551-0200 x209
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Heerko van der Kooij > Sent: Tuesday, August 01, 2006 9:12 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] String Empowerment > > Hi Steven, > > Maybe i'm saying something stupid here, but would this be a prettier > way to do the capitalize? > > String.prototype.capitalize = function() { > return this.charAt(0).toUpperCase() + this.substr(1).toLowerCase(); > } _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com