SSNTextInput
From Openzet
Introduction
SSNTextInput class expands on the functionality of TextInput class to provide validation feature on textfield’s text value. This class internally uses SSNValidator class to validate appropriate SSN. This class dispatches valid and invalid event, while also providing validIcon image when valid.
Usage
<controls:SSNTextInput id="ssnTextInput" /> You can use SSNTextInput in mxml as the following. <validator:SSNValidator source="{ssn}" property="text" trigger="{ssn}" triggerEvent="change" valid="Alert.show('ok')" /> To check validation on SSNTextInput control, you need make an instance of SSNValidator. SSNValidator’s source could be any control that has ‘text’ property. ssnTextInput.showIcon = true; showIcon property lets you specify whether to show or hide valid icon image. Default value of this property is false. ssnTextInput.addEventListener(SSNTextInputEvent.VALID_SSN, validSSNHandler);You can register an event listener as the code above.
ssnTextInput.addEventListener(SSNTextInputEvent.INVALID_SSN, invalidSSNHandler);
