Using a submit button to validate form fields
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:StringValidator source="{username}" property="text" minLength="6" trigger="{submitButton}" triggerEvent="click" /> <mx:EmailValidator source="{email}" property="text" trigger="{submitButton}" triggerEvent="click" /> <mx:Text text="Email:" /> <mx:TextInput id="email" /> <mx:Text text="Enter your username:" /> <mx:TextInput id="username" /> <mx:Button label="Submit" id="submitButton" /> </mx:Application>