Change button alpha value when clicking the button : alpha « Effects « Flex






Change button alpha value when clicking the button

Change button alpha value when clicking the button
          

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

    <mx:Button id="button" label="Alpha Button" click="button.alpha -= .1" />
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Set alpha for controlSet alpha for control
2.Change alpha when creation completedChange alpha when creation completed
3.Fade Behaviours alpha value and durationFade Behaviours alpha value and duration
4.change the width, color, and alpha of the axis line with the tag.change the width, color, and alpha of the axis line with the <mx:axisStroke> tag.
5.alpha is short for alpha channel, and it is a number from 0 to 1 that controls how transparencyalpha is short for alpha channel, and it is a number from 0 to 1 that controls how transparency
6.Change alpha value for CanvasChange alpha value for Canvas