Change alpha value for Canvas : alpha « Effects « Flex






Change alpha value for Canvas

Change alpha value for Canvas
         
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
        
            [Bindable]
            private var dp:Array =[
                        {label:'A', data:1},
                        {label:'B', data:2},
                        {label:'C', data:3},
                        {label:'D', data:4}
            ];
      
    </mx:Script>
    <mx:Canvas x="218" width="200" height="200" verticalCenter="10.5" backgroundColor="#ffffff" cornerRadius="8"
        borderStyle="solid" alpha="0.5">
        <mx:ComboBox x="10" y="10" dataProvider="{dp}" width="180"></mx:ComboBox>
        <mx:DataGrid x="10" y="40" width="180" height="120" dataProvider="{dp}">
            <mx:columns>
                <mx:DataGridColumn headerText="Id" dataField="data" width="30" />
                <mx:DataGridColumn headerText="Artist" dataField="label"  />
            </mx:columns>
        </mx:DataGrid>
        <mx:Button x="10" y="166" label="Button"/>
    </mx:Canvas>
    
</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 button alpha value when clicking the buttonChange button alpha value when clicking the button