Components Flex



    
        
            
                
                
                
                    
                    
                
                
            
        

    
    
        
        [Bindable]
        [Embed(source="logo.jpg")]
        public var openIcon:Class;
        import mx.controls.Menu;
        
        private function showMenu():void
        {
            var myMenu:Menu = Menu.createMenu(myButton, myMenuData);
            myMenu.labelField="@label";
            myMenu.iconField="@icon";
            myMenu.show();
        }