S > String.substring
String.substringSyntax
myString
.substring(
from
,to
);
Arguments
from
An integer that indicates the position of the first character in the substring being created. Valid values for from
are 0 through string.length
- 1.
to
An integer that is 1+ the index of the last character in the substring being created. Valid values for to
are 1 through string.length
. If the to
argument is not specified, the end of the substring is the end of the string. If from
equals to
, the method returns an empty string. If from
is greater than to
, the arguments are automatically swapped before the function executes.
Description
Method; returns a string consisting of the characters between the points specified by the from
and to
arguments.
Player
Flash 5 or later.