Revision: 16166
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 28, 2009 04:52 by mprabhuram
Initial Code
private var phoneValidator:PhoneNumberValidator; private function creationCompleteHandler():void { // // Create validators // // Phone validator phoneValidator = new PhoneNumberValidator(); phoneValidator.source = phoneInput; phoneValidator.property = "text"; } <mx:Panel title="Phone number validator"> <mx:Form> <mx:FormItem label="Name:"> <mx:TextInput id="nameInput" /> </mx:FormItem> <mx:FormItem label="Phone: "> <mx:TextInput id="phoneInput" /> </mx:FormItem> <mx:FormItem label="Email: "> <mx:TextInput id="emailInput" /> </mx:FormItem> </mx:Form> </mx:Panel>
Initial URL
Initial Description
Use this as a sample script to code flex data validations
Initial Title
Flex Data Validator - Phone number validator
Initial Tags
Initial Language
ActionScript 3