Findtext (Textsnapshot.findtext Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),

findText (TextSnapshot.findText method)

public findText(startIndex:Number, textToFind:String,
caseSensitive:Boolean) : Number
Searches the specified TextSnapshot object and returns the position of the first occurrence of
found at or after
textToFind
.
1
Availability: ActionScript 1.0; Flash Player 7 - The SWF file must be published for Flash
Player 6 or later, and must be played in Flash Player 7 or later.
Parameters
startIndex:Number
search for the specified text.
textToFind:String
quotation marks) or a variable.
caseSensitive:Boolean
the case of the string in
Returns
- The zero-based index position of the first occurrence of the specified text, or
Number
text matched.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
startIndex
- Specifies the starting index point in the TextSnapshot text at which to
- The text to search for. Specify either a String literal (enclosed in
- Boolean value that specifies whether the found text must match
(
textToFind
true
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
method),
. If
is not found, the method returns
textToFind
); otherwise
.
false
toString
valueOf
-1
TextSnapshot
-
if no
1253

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF