# Search In Text Files using Flash

**URL:** https://forum.kirupa.com/t/search-in-text-files-using-flash/150051
**Category:** flash
**Created:** [June 3, 2005, 9:24am UTC](https://forum.kirupa.com/t/search-in-text-files-using-flash/150051 "2005-06-03T09:24:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hweiee](https://avatars.discourse-cdn.com/v4/letter/h/4bbf92/32.png) [@hweiee](https://forum.kirupa.com/u/hweiee)
#### Post date: [June 3, 2005, 9:24am UTC](https://forum.kirupa.com/t/search-in-text-files-using-flash/150051/1 "2005-06-03T09:24:20Z")

</div>

Hi ppl!  
I just read a tutorial on the web on how to use flash to display the text in a text file, ie using load variable, and dynamic textbox.  
I was just wondering, is it possible to search for a word in that text file?  
for example, this is what I did, following instructions from the tutorial so that flash can display the text in the text file

text file (abc.txt) :  
content=Hello everybody! This is the text in abc.txt, enjoy!

and in my flash there is a dynamic box with variable name called “content”.

in another layer of my flash movie, in frame actions, i had this:  
loadvariable(“abc.txt”,this);

so lets say i need to check if there is a word called “everybody” in the file, and then return true/false value, possible? If so, how? I suppose i won’t need the dynamic box to display text in this case… as I am just finding to check if a particular word in present in the abc.txt

If you need to know, I am trying to make a educational flash game for a school project.  
Trying to see if i can use the txt as something like a database file.

Hope to hear from you people soon! 😃  
Thanks!!!

hweiee
