| Method | Defined by | ||
|---|---|---|---|
|
Finder(textField:TextField)
Finds strings in a TextField.
| Finder | ||
|
findNext(string:String, caseSensitive:Boolean = true):int
Finds the first instance of a string after the Finder's current carat position.
| Finder | ||
|
findPrevious(string:String, caseSensitive:Boolean = true):int
Finds the first instance of a string before the Finder's current carat position.
| Finder | ||
|
indexesOf(string:String, caseSensitive:Boolean = true):Array
Gets all indexes of a string in the TextField.
| Finder | ||
|
setCarat(evt:MouseEvent):void
Synchronizes the Finder's internal carat position with the TextField's carat position when the user manually sets it by clicking in the TextField.
| Finder | ||
| Finder | () | constructor |
public function Finder(textField:TextField)Finds strings in a TextField.
ParameterstextField:TextField — The TextField to search.
|
| findNext | () | method |
public function findNext(string:String, caseSensitive:Boolean = true):intFinds the first instance of a string after the Finder's current carat position.
Parametersstring:String — The string to search for.
|
|
caseSensitive:Boolean (default = true) |
int — The character index of the string.
|
| findPrevious | () | method |
public function findPrevious(string:String, caseSensitive:Boolean = true):intFinds the first instance of a string before the Finder's current carat position.
Parametersstring:String — The string to search for.
|
|
caseSensitive:Boolean (default = true) |
int — The character index of the string.
|
| indexesOf | () | method |
public function indexesOf(string:String, caseSensitive:Boolean = true):ArrayGets all indexes of a string in the TextField.
Parametersstring:String — The string to search for.
|
|
caseSensitive:Boolean (default = true) |
Array — An array of all the indexes of the string.
|
| setCarat | () | method |
public function setCarat(evt:MouseEvent):voidSynchronizes the Finder's internal carat position with the TextField's carat position when the user manually sets it by clicking in the TextField.
Parametersevt:MouseEvent |