Setup data provider for PopUpMenuButton : PopUpMenuButton « 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 » PopUpMenuButtonScreenshots 
Setup data provider for PopUpMenuButton
Setup data provider for PopUpMenuButton
  
<?xml version='1.0' encoding='UTF-8'?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
        import mx.controls.Alert;
        public function showMsg(msg:String):void
        {
            Alert.show('You just clicked on ' + msg);
        }
      
    </mx:Script>
    <mx:PopUpMenuButton id="menuBtn"
        dataProvider="{['One','Two','Three']}" 
        click="showMsg('left side')"
        itemClick="showMsg('right side with ' + event.label)" />
</mx:Application>

   
    
  
Related examples in the same category
1.PopUpMenuButton click eventPopUpMenuButton click event
2.Hard code data provider for PopUpMenuButton
3.Menu Separator for PopupMenuButtonMenu Separator for PopupMenuButton
4.Setup PopupMenuButtonSetup PopupMenuButton
5.Create PopUpMenuButton from ArrayCreate PopUpMenuButton from Array
6.Click event for PopUpMenuButtonClick event for PopUpMenuButton
7.Create a PopUpMenuButton control using an E4X XML data provider.Create a PopUpMenuButton control using an E4X XML data provider.
8.Use PopUpMenuButton change event to set the labelUse PopUpMenuButton change event to set the label
9.Use XMLListCollection as the PopUpMenuButton data sourceUse XMLListCollection as the PopUpMenuButton data source
10.Item click event for PopUpMenuButtonItem click event for PopUpMenuButton
11.PopUpMenuButton and XMLList data providerPopUpMenuButton and XMLList data provider
12.how the PopUpMenuButton generates events and how an application can handle themhow the PopUpMenuButton generates events and how an application can handle them
13.Creating a PopUpMenuButton controlCreating a PopUpMenuButton control
14.To use a dynamic label property, use a PopUpMenuButton control change event listenerTo use a dynamic label property, use a PopUpMenuButton control change event listener
w__w___w___._ja_v_a_2___s.__c___o__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.