Form Validation

0 views
Skip to first unread message

And Hatch

unread,
Aug 3, 2010, 3:05:25 PM8/3/10
to bumpslide
I'm on the verge of creating a custom as3 self-validating TextField
class. I think I'm going to go ahead and extend TextBox and pass in a
validation method that be called from a public "validate" method. The
validation method could contain an error string that the validate
method could return as well.

Any thoughts on this? I'm just pretty tired of rolling my own form
validation. Validation methods could be based on this:
http://code.google.com/p/flash-validators/ What is everyone else (who
isn't using Flex) using?

David Knape

unread,
Aug 3, 2010, 6:01:09 PM8/3/10
to bump...@googlegroups.com
The validators look interesting, and your approach sounds useful.  I tend to put form data and validation logic in its own model. So, I would strive to keep the textbox class and the validation logic as separate as possible. But, please share what you have.  

I guess now is a good time to point out that my latest code is now on github.  Lots of refactoring in the UI package with an emphasis on MXML-ability with a basic skinning implementation. 


-dk


--
David Knape
Programmer / Consultant


--
--
Bumpslide Mailing List
http://groups.google.com/group/bumpslide

To post to this group, send email to bump...@googlegroups.com
To unsubscribe from this group, send email to
bumpslide+...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages