Tolowercase (String.tolowercase Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following example shows how to use
var my_str:String = "Hello world";
var mySubstring:String = my_str.substring(6,11);
trace(mySubstring); // output: world
The following example shows what happens if a negative
var my_str:String = "Hello world";
var mySubstring:String = my_str.substring(-5,5);
trace(mySubstring); // output: Hello
An example is also in the Strings.fla file in the ActionScript samples folder. The following list
gives typical paths to this folder:
Windows: boot drive\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript
Macintosh: Macintosh HD/Applications/Macromedia Flash 8/Samples and Tutorials/
Samples/ActionScript

toLowerCase (String.toLowerCase method)

public toLowerCase() : String
Returns a copy of the
The original value is unchanged.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
- A string.
String
Example
The following example creates a string with all uppercase characters and then creates a copy of
that string using
toLowerCase()
var upperCase:String = "LOREM IPSUM DOLOR";
var lowerCase:String = upperCase.toLowerCase();
trace("upperCase: " + upperCase); // output: upperCase: LOREM IPSUM DOLOR
trace("lowerCase: " + lowerCase); // output: lowerCase: lorem ipsum dolor
substring()
object, with all uppercase characters converted to lowercase.
String
to convert all uppercase characters to lowercase characters:
:
parameter is used:
start
String
639

Advertisement

Table of Contents
loading

Table of Contents