Using an XMLList component to configure menu data : XMLList « Data Model « Flex






Using an XMLList component to configure menu data

   

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical">
    <mx:XMLList id="myMenuData">
        <menuitem label="File">
            <submenu label="New" />
            <submenu label="Open" />
        </menuitem>
        <menuitem label="Edit">
            <submenu label="Cut" />
            <submenu label="Paste" />
            <submenu label="Copy" />
        </menuitem>
    </mx:XMLList>
</mx:Application>

   
    
    
  








Related examples in the same category

1.XMLListCollection component wrapped around an XMLList
2.Creating an XMLList component to drive a List componentCreating an XMLList component to drive a List component
3.Using XMLListUsing XMLList
4.Wrapping an XMLListCollection around an XMLList
5.Use an XMLListCollection objectUse an XMLListCollection object
6.Add an XMLList to an XML Object
7.Bind to an XMLList or an E4X QueryBind to an XMLList or an E4X Query
8.Filter and Sort an XMLListCollectionFilter and Sort an XMLListCollection
9.XMLListCollection With ListXMLListCollection With List
10.Time formatTime format