I would like to add a custom context menu with line separators, but can’t really figure out how. What I need:
<mx:List id="treeContextFile" visible="false" width="233" verticalScrollPolicy="off" includeInLayout="false">
<mx:dataProvider>
<mx:Array >
<mx:String>Open</mx:String>
<horizontal line here >
<mx:String>Cut</mx:String>
<mx:String>Copy</mx:String>
<mx:String>Paste</mx:String>
<horizontal line here >
<mx:String>Rename</mx:String>
<mx:String>Delete</mx:String>
<horizontal line here >
<mx:String>Properties</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:List>
Here’s a blog with an example like what you are needing:
http://blog.flexexamples.com/2008/10/02/adding-a-horizontal-separator-to-a-flex-popupbutton-controls-pop-up-menu-redux/#more-816