PDA

View Full Version : Dynamic text field search


GVJ
03-18-2003, 08:07 AM
There may be a very simple answer to this question and I'd be really grateful for an answer from you guys.....


Can you search through the contents of a dynamic text field to find specific strings which have their own specific function attached?

The user is only allowed to input one letter at a time, each entry will be shown in the dynamic text field as the letter is entered to show the user's "path" so to speak, so the dynamic text field will not have any specific words or phrases, only a line of letters.
For specific actions I want the AS to search through this line of letter (string), to check which event should be happening. (Hope this makes sense)

Would the indexOf() function do the trick here, or am I way off.

Please help

jaybee
03-20-2003, 04:00 PM
I'm a bit confused about what you want to do - is the user input checked every time they enter text and any matching function names executed or do you wait til they have typed the whole thing out then search the input text for function names? Are these methods defined by you?

You're on the right track with indexOf but can't give you more detail til I'm clearer

GVJ
03-21-2003, 08:51 AM
Hi Jaybee,

I think I might have been looking for too many problems as I've found a very simple way of doing what I wanted !!

Cheers for replying