Creating a model that a menu uses to drive its display
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:Model id="myMenuData"> <menuinfo> <menuitem label="New"> <children label="File" /> <children label="Open File" /> </menuitem> <menuitem label="Edit"> <children label="Cut" /> <children label="Paste" /> <children label="Copy" /> </menuitem> </menuinfo> </mx:Model> </mx:Application>