We Recommend

Essential ActionScript 3.0 Essential ActionScript 3.0
The book focuses on the core language and object-oriented programming, but also adds a deep look at the centerpiece of Flash Player's new API: display programming. Enjoy hundreds of brand new pages covering exciting new language features, such as the DOM-based event architecture, E4X, and namespaces--all brimming with real-world sample code.


Posted By

arpo on 12/30/08


Tagged


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

THEPWN3R


Validate e-mail


Published in: ActionScript 3 


  1. if (
  2. eMail.text == "" ||
  3. eMail.text.length < 5 ||
  4. eMail.text.indexOf("@") < 0 ||
  5. eMail.text.indexOf(".") < 0 ||
  6. eMail.text.indexOf(" ") > 0
  7. )
  8. {
  9. trace("Nope!")
  10. }

Report this snippet 

You need to login to post a comment.