flash form validation
- Started
- Last post
- 8 Responses
- zanetate
I know how to check a form field in VBScript to see if it's numeric, but not in Flash. I've searched all over but no luck yet. Any suggestions? I just need to check the field value to see if it's a number.
Thanks!
- shellie0
theres a really good flash file that does that i found on flashkit.com... i'll try to find it for you.
- zanetate0
Thanks Shellie. I checked there but didn't have much luck.
- shellie0
http://www.flashkit.com/movies/I…
this isnt what your looking for?
- zanetate0
no, but thanks for looking. i need an IsNumeric function to make sure the value is 0-9, not alpha or symbols.
- dbox0
That actually only validates that you put *anything* in the form fields..
I put in all spaces and it validated ...
it doesn't make sure you have
- _b_0
var num = 1;
if (typeof(num) == "number") {
trace(num + " is a number");
} else {
trace(num + " isn't a number");
}
- londonBoy0
check this fla i just prepared:
- zanetate0
Sweet, thanks guys.