S > String.indexOf
String.indexOfSyntax
myString
.indexOf(
value
);
myString
.index of (
value
,
start
);
Arguments
value
An integer or string specifying the substring to be searched for within myString
.
start
An integer specifying the starting point of the substring. This argument is optional.
Description
Method; searches the string and returns the position of the first occurrence of the specified value
. If the value is not found, the method returns -1.
Player
Flash 5 or later.