Enable a Group by checking a DropDownList selection : DropDownList « 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 » DropDownListScreenshots 
Enable a Group by checking a DropDownList selection
Enable a Group by checking a DropDownList selection
         
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
    xmlns:s="library://ns.adobe.com/flex/spark"
    creationComplete="handleCreationComplete();">
    <mx:Script>
        
            import mx.collections.ArrayCollection;
            import spark.core.MaskType;
            
            [Bindablepublic var masks:ArrayCollection;
            private function handleCreationComplete():void
            {
                masks = new ArrayCollection( [ MaskType.CLIP,MaskType.ALPHA,MaskType.LUMINOSITY ] );
                maskList.selectedIndex = 0;
            }
      
    </mx:Script>
    <s:DropDownList id="maskList" dataProvider="{masks}" />

    <s:Group enabled="{maskList.selectedItem==MaskType.LUMINOSITY}">
        <s:layout>
            <s:HorizontalLayout />
        </s:layout>
        <mx:CheckBox label="A" />
        <mx:CheckBox label="B" />
    </s:Group>
    
</mx:Application>

   
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Fill ArrayCollection to a DropDownListFill ArrayCollection to a DropDownList
2.Get current selected value from DropDownListGet current selected value from DropDownList
3.Trigger the drop down of DropDownListTrigger the drop down of DropDownList
4.DropDownList control with prompt messageDropDownList control with prompt message
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.