# Search function for Text Fields?

**URL:** <https://forum.kirupa.com/t/search-function-for-text-fields/137895>\
**Category:** Uncategorized\
**Created:** [February 18, 2005, 7:04am UTC](https://forum.kirupa.com/t/search-function-for-text-fields/137895 "2005-02-18T07:04:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 18, 2005, 7:04am UTC](https://forum.kirupa.com/t/search-function-for-text-fields/137895/1 "2005-02-18T07:04:07Z")

</div>

[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 =)
