Using the AnimateProperty effect to fade a button
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:AnimateProperty id="myEffect" property="alpha" fromValue="1.0" toValue="0.0" duration="3000" /> <mx:Button label="Click me" mouseDownEffect="{myEffect}" /> </mx:Application>