String Constructor; Substr (String.substr 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

String constructor

public String(value:String)
Creates a new String object.
Note: Because string literals use less overhead than String objects and are generally easier to
use, you should use string literals instead of the constructor for the String class unless you
have a good reason to use a String object rather than a string literal.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- The initial value of the new String object.
value:String

substr (String.substr method)

public substr(start:Number, length:Number) : String
Returns the characters in a string from the index specified in the
number of characters specified in the
the string specified by
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- An integer that indicates the position of the first character in
start:Number
used to create the substring. If
from the end of the string, where the -1 is the last character.
- The number of characters in the substring being created. If
length:Number
specified, the substring includes all the characters from the start to the end of the string.
Returns
- A substring of the specified string.
String
length
; it returns a new string.
my_str
is a negative number, the starting position is determined
start
start
parameter. The
substr
parameter through the
method does not change
to be
my_str
is not
length
String
637

Advertisement

Table of Contents
loading

Table of Contents