Re: [Flashcoders] as 2 email validation class

2006-11-19 Thread Joseph Balderson
Yeah, you're right, that one is a little too simple. Another one I've used is this: -- // vars var checkStr:String = ._-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789; var isValid:Boolean; var inputTxt:TextInput; var

Re[2]: [Flashcoders] as 2 email validation class

2006-11-19 Thread R�kos Attila
This is much better, but not perfect yet :) It still lets pass strings like @., [EMAIL PROTECTED], [EMAIL PROTECTED], foo@@foo.com, etc. I think that validating carefully everything what comes from the user is an essential thing, and we have to don't allow breaking programs by wrong inputs. It

Re: Re[2]: [Flashcoders] as 2 email validation class

2006-11-19 Thread Andrei Thomaz
there is a problem with the behavior described below: The above script check for a @ followed by the last instance of This turns e-mails from some countries (like [EMAIL PROTECTED]) invalid. For example, I had to fix the e-mail validation in the code of some CMS to develop some sites for

Re[2]: [Flashcoders] as 2 email validation class

2006-11-19 Thread R�kos Attila
I have attached a class which - hopefully - takes care of each possible issue :) Attila___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought

Re[3]: [Flashcoders] as 2 email validation class

2006-11-19 Thread R�kos Attila
uhh, attachments are not allowed here? class Validate { // characters allowed in e-mail addresses, not including the separators (@ and .) public static var EMAIL_CHARS: String = abcdefghijklmnopqrstuvwxyz_-; // test a string for containing allowed characters only public static

Re: [Flashcoders] as 2 email validation class

2006-11-19 Thread Muzak
http://muzakdeezign.com/flashcoders/?q=email%20validation Muzak ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf

Re: [Flashcoders] as 2 email validation class

2006-11-19 Thread Kurt Dommermuth
Muzak, thank you for the handy google search! Another cool thing you done! Kurt At 04:49 PM 11/19/06, you wrote: http://muzakdeezign.com/flashcoders/?q=email%20validation Muzak ___ Flashcoders@chattyfig.figleaf.com To change your subscription

Re[2]: [Flashcoders] as 2 email validation class

2006-11-18 Thread R�kos Attila
Well, this is too simple, there are too many invalid strings which are considered as valid by this script. I think if you validate the input, then do it correctly or don't validate at all :) An incomplete validation makes you feel that your data is valid and secure, however it can lead to

[Flashcoders] as 2 email validation class

2006-11-17 Thread Dustin Krysak
I am looking for an AS@ class that validates a string to see if it is a properly formatted email address. Does anyone have one handy? Or have you seen one around? I found one at : http://www.bokelberg.de/actionscript/checkEmail.html However it seems to think an email address with less that 4

RE: [Flashcoders] as 2 email validation class

2006-11-17 Thread Steven Sacks | BLITZ
However it seems to think an email address with less that 4 characters before the @' is not valid (when it is). So just modify it to allow less than 4 characters before the @. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options

Re: [Flashcoders] as 2 email validation class

2006-11-17 Thread Rich Rodecker
I found this when I was adding stuff to actionscriptclasses.com : http://www.robgonda.com/blog/index.cfm/2006/3/1/actionscript-regular-expression-class the download has an email validation example. On 11/17/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: However it seems to think an