Fade effect for Button
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Fade id="myFadeOut" alphaFrom="1" alphaTo="0" /> <mx:Fade id="myFadeIn" alphaFrom="0" alphaTo="1" /> <mx:Button label="Button 1" mouseDownEffect="{myFadeOut}" mouseUpEffect="{myFadeIn}" /> </mx:Application>