S > String.lastIndexOf

String.lastIndexOf

Syntax

myString.lastIndexOf(substring);
myString.lastIndexOf(substring, start);

Arguments

substring An integer or string specifying the string to be searched for.

start An integer specifying the starting point inside the substring. This argument is optional.

Description

Method; searches the string and returns the index of the last occurrence of substring found within the calling string. If substring is not found, the method returns -1.

Player

Flash 5 or later.