Components Flex



    
    
    import mx.controls.Menu
    private function initMenuData():void {
        Menu(popupMB.popUp).selectedIndex=2;
    }
  
    

    
        
            
            
            
            
            
        

    
                            showRoot="false"
                        labelField="@label"
                        dataProvider="{fileMenuChoices}"
                        creationComplete="initMenuData();"/>