Hi list...

I have some input text box with a go button that is enabled or disabled based 
on an Event.CHANGE for the TextInput.  As someone types in a string, a go 
button becomes enabled or disabled, but I want the *entire* text in the text 
box to be considered, not just a matched substring.  Is this possible?

((TextField(e.target).text).match(/(((g|1|2|3)(E|W)\d{3})|((g|1|2|3)(E|W)\d{3}-?(\d{2})?))/i))?activateGoButton(true):activateGoButton(false);
For instance, the above code would enable the go button when you type the text: 
"g1e222-"  But, it shouldn't at that point, because it should be expeciting two 
more numbers.  Any tips are appreciated.

Thanks,
- Michael M.

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to