Components Flex

    xmlns:s="library://ns.adobe.com/flex/spark"
    creationComplete="handleCreationComplete();">
    
        
            import mx.collections.ArrayCollection;
            import spark.core.MaskType;
            
            [Bindable] public var masks:ArrayCollection;
            private function handleCreationComplete():void
            {
                masks = new ArrayCollection( [ MaskType.CLIP,MaskType.ALPHA,MaskType.LUMINOSITY ] );
                maskList.selectedIndex = 0;
            }