Email address validation
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"> <mx:EmailValidator source="{email}" property="text" invalidCharError="invalid Email" trigger="{submitButton}" triggerEvent="click" /> <mx:Text text="Email:" /> <mx:TextInput id="email" /> <mx:Button label="Submit" id="submitButton" /> </mx:Application>