hoony's web study

728x90
반응형


Flex 로 개발을 하다보니 이래저래 알아야될것이 많아서
쓴것을 다 블로그에 옮겨볼 생각이네요
혹시 함수 만드실분이 계실것 같아서 이렇게 올려드려요
저도 help파일에서 무심코 검색했다가 나온거라서요 ㅎㅎ


The EmailValidator class validates that a String has a single @ sign, a period in the domain name and that the top-level domain suffix has two, three, four, or six characters. IP domain names are valid if they are enclosed in square brackets. The validator does not check whether the domain and user name actually exist.

You can use IP domain names if they are enclosed in square brackets; for example, myname@[206.132.22.1]. You can use individual IP numbers from 0 to 255.


import mx.validators.EmailValidator;
<mx:EmailValidator
    invalidCharError="Your e-mail address contains invalid characters."  //사용할 수 없는 문자가 올경우 출력할 메세지
    invalidDomainError= "The domain in your e-mail address is incorrectly formatted."  // 도메인 주소가 유효하지 않을때
    invalidIPDomainError="The IP domain in your e-mail address is incorrectly formatted."  // ip 주소가 유효하지 않을때
    invalidPeriodsInDomainError="The domain in your e-mail address has consecutive periods."  //도메인 형식이 .이 겹치거나 그럴때
    missingAtSignError="An at sign (&64;) is missing in your e-mail address." //@표시가 없을때
    missingPeriodInDomainError="The domain in your e-mail address is missing a period."
    missingUsernameError="The username in your e-mail address is missing."
    tooManyAtSignsError="Your e-mail address contains too many &64; characters."  //@게 많을때
  />


728x90

공유하기

facebook twitter kakaoTalk kakaostory naver band
loading