MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 653

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

String.indexOf()
Availability
Flash Player 5.
Usage
my_str.indexOf(substring, [startIndex])
Parameters
An integer or string specifying the substring to be searched for within
substring
An optional integer specifying the starting point in
startIndex
the substring.
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
found at or after
returns -1.
See also
String.lastIndexOf()
String.lastIndexOf()
Availability
Flash Player 5.
Usage
my_str.lastIndexOf(substring, [startIndex])
Parameters
An integer or string specifying the string to be searched for.
substring
An optional integer specifying the starting point to search for
startIndex
Returns
The position of the last occurrence of the specified substring, or -1.
Description
Method; searches the string from right to left and returns the index of the last occurrence of
found before
substring
method returns -1.
See also
String.indexOf()
within the calling string. If
startIndex
within the calling string. If
startIndex
to search for
my_str
substring
is not found, the method
substring
substring
is not found, the
substring
String.lastIndexOf()
.
my_str
.
653

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Table of Contents