Accessibility
 
Home > Products > Flash > Support > ActionScript Dictionary
Flash Icon Macromedia Flash Support Center - ActionScript dictionary
String.indexOf

Availability
Flash Player 5.

Usage

 myString  .indexOf(  substring,  [ startIndex ] ) 

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

startIndex An integer specifying the starting point in myString to search for substring. This parameter is optional.

Returns
The position of the first occurrence of the specified substring, or -1.

Description
Method; searches the string and returns the position of the first occurrence of the specified substring . If the value is not found, the method returns -1.

To Table of Contents Back to Previous document Forward to next document