String.toUpperCase()
Availability
Flash Player 5.
Usage
my_str.toUpperCase() : String
Parameters
None.
Returns
A string.
Description
Method; returns a copy of the String object, with all lowercase characters converted to uppercase.
The original value is unchanged.
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 HelpExamples folder. The following list
gives typical paths to this folder:
•
Windows: \Program Files\Macromedia\Flash MX 2004\Samples\HelpExamples\
•
Macintosh: HD/Applications/Macromedia Flash MX 2004/Samples/HelpExamples/
•
See also
String.toLowerCase()
:
String.toUpperCase()
809
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers