Search function for Text Fields?

[color=SlateGray]Hey everyone,
I searched but couldn’t find anything here or on google about this. I’m trying to port an application created in another language to Flash. I’m trying to implement a boolean function that simply tells me if a word I pass in as an argument is contained in the text field.

So I am wondering if Flash includes a built-in function such as “find” or “contain?” which are common in other languages for determining if a word is in a text field?
[/color]
EDIT: Never mind - I found that indexOf accomplishes pretty much the same thing!

Thanks!
Kirupa =)