Button mouse down and mouse up effect : Button Effect « Components « Flex






Button mouse down and mouse up effect

Button mouse down and mouse up effect
     
<?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>

   
    
    
    
    
  








Related examples in the same category

1.Using the Move effect to move the button diagonallyUsing the Move effect to move the button diagonally
2.Button with rollOverEffect propertyButton with rollOverEffect property
3.Button with mouseDownEffectButton with mouseDownEffect
4.Button mouse down effectButton mouse down effect
5.Button creationCompleteEffectButton creationCompleteEffect
6.Add SoundEffect to Button mouse down effectAdd SoundEffect to Button mouse down effect
7.Button WipeLeftButton WipeLeft
8.Use Matrix3D to Apply Transformations Within a LayoutUse Matrix3D to Apply Transformations Within a Layout
9.Transform a button aroundTransform a button around