So far I’ve repurposed List into a DataGrid, Tree, DateField and ColorPicker. Here is my attempt to convert List into Menu and MenuBar. Usual caveats apply. There are probably bugs, the visuals need tuning, and there is no guarantee that the one we finally ship someday will look anything like it.
Run Demo
Download Source

Perfect – thanks!
Nice! It would be interesting to see how you would solve the issue of having different skins for different levels of the menu. My first thought on this would essentially to include this as a property on the dataprovider for the menu, perhaps introducing the styleName property. Ideally, the style would be inheriting, so that any child menues would apply the same skin as it’s parent menu.
In any case, good work!
Very Nice Job !
But only one question : how to render clickable the button in menuBar if it have no menu ?
Thanks !
You’d probably have to add more code to dispatchEvent in SparkMenuBar so it doesn’t filter events for items that have no menu
Thanks…
Good example.. but in your example, sub menu items are not displaying if i click on menu item. only mouse over is working fine…. is there any solution…?
if i selected menu item that has sub menu items then i moved my mouse pointer to other menu items in this case mouse over not working for that selected menu item…
You could try blocking events that would select an item that has sub-menu items.
My effort http://www.tink.ws/blog/menubar/
Very Nice Job !
But only one question : how to render clickable the button in menuBar if it have no menu ?
Thanks !
is there any chance this component is ported to Flex 4.5 ?
This doesn’t seem to work in 4.5.1 – the submenu is automatically hidden when you try to mouse over it. Any ideas? Also – the following function in the renderers gives an incompatible override error:
override protected function itemRenderer_rollOutHandler
Was this removed from ItemRenderer at some point?