Dear Steven Sacks,

I greatly appreciate the efforts. Long time back we started "ActionScript Standard Library" project in Sourceforge (http://sourceforge.net/projects/fasl) unfortunately it was discontinued :(

On those days I wrote "Code.Flash MX: String.changeCase(Title || Sentence || Toggle)"
http://www.shockwave-india.com/blog/?archive=2002_11_01_archive.xml#83915217

Just a quick note on capitalize()

String.toUpperCase() and String.toLowerCase() are part of ActionScript 1 since Flash 5

Regards,
Arul

Adobe Community Expert for Flash
http://www.shockwave-india.com/blog

______________________________________________________________

toUpperCase (String.toUpperCase method)
public toUpperCase() : String

Returns a copy of the String object, with all lowercase characters converted to uppercase. The original value is unchanged.

Availability: ActionScript 1.0; Flash Player 5

Returns
String - A string.

Example
The following example creates a string with all lowercase characters and then creates a copy of that string using toUpperCase():

var lowerCase:String = "lorem ipsum dolor";
var upperCase:String = lowerCase.toUpperCase();
trace("lowerCase: " + lowerCase); // output: lowerCase: lorem ipsum dolor
trace("upperCase: " + upperCase); // output: upperCase: LOREM IPSUM DOLOR
An example is also found in the Strings.fla file in the ActionScript samples folder. The following list gives typical paths to this folder:

a.. Windows: boot drive\Program Files\Macromedia\Flash 8\Samples and Tutorials\Samples\ActionScript b.. Macintosh: Macintosh HD/Applications/Macromedia Flash 8/Samples and Tutorials/Samples/ActionScript

______________________________________________________________


----- Original Message ----- From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Friday, July 28, 2006 6:59 AM
Subject: [SPAM] RE: [Flashcoders] String Empowerment


Pseudocode examples of usage:

"hello".capitalize()  > "Hello"
"HELLO".capitalize()  > "Hello"
"123ABC".capitalize()  > "123abc"

_______________________________________________
[email protected]
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

Reply via email to