Data Validation Through Events
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:CurrencyValidator source="{currencyUS}" property="text" alignSymbol="left" trigger="{validateButton}" triggerEvent="click" /> <mx:Panel title="Validation through Events" horizontalAlign="center"> <mx:Label text="Enter a US-formatted number:" /> <mx:TextInput id="currencyUS" /> <mx:Button label="Do It" id="validateButton" /> </mx:Panel> </mx:Application>