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