EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 653

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
String.lastIndexOf() 653
String.indexOf()
Availability
Flash Player 5.
Usage
my_str.indexOf(substring, [startIndex])
Parameters
substring
An integer or string specifying the substring to be searched for within my_str.
startIndex An optional integer specifying the starting point in my_str to search for
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 substring
found at or after
startIndex within the calling string. If substring is not found, the method
returns -1.
See also
String.lastIndexOf()
String.lastIndexOf()
Availability
Flash Player 5.
Usage
my_str.lastIndexOf(substring, [startIndex])
Parameters
substring
An integer or string specifying the string to be searched for.
startIndex An optional integer specifying the starting point to search for substring.
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
substring found before startIndex within the calling string. If substring is not found, the
method returns -1.
See also
String.indexOf()

Table of Contents

Related product manuals