Button mouse down effect : Button Effect « Components « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Components » Button EffectScreenshots 
Button mouse down effect
Button mouse down effect
     
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
        import mx.effects.*;
        public function createLargeMask(targ:Object,bounds:Rectangle):Shape {
            var largeMask:Shape = new Shape();
            largeMask.graphics.beginFill(0x00FFFF0.5);
            largeMask.graphics.drawRoundRect(00, bounds.width + 10,bounds.height - 103);
            largeMask.graphics.endFill();
            return largeMask;
        }
      
    </mx:Script>
    <mx:WipeLeft id="customWL" createMaskFunction="createLargeMask" showTarget="false" />
    <mx:HBox borderStyle="solid" paddingLeft="10" paddingRight="10" paddingTop="10" paddingBottom="10">
        <mx:Button label="Play" mouseDownEffect="{customWL}" height="100" width="100" />
    </mx:HBox>
</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 creationCompleteEffectButton creationCompleteEffect
5.Button mouse down and mouse up effectButton mouse down and mouse up effect
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
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.