Spark Menu and MenuBar

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

10 Responses to Spark Menu and MenuBar

  1. kevin says:

    Perfect – thanks!

  2. Marcus Stade says:

    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!

  3. Skyrick says:

    Very Nice Job !

    But only one question : how to render clickable the button in menuBar if it have no menu ?
    Thanks !

    • Alex Harui says:

      You’d probably have to add more code to dispatchEvent in SparkMenuBar so it doesn’t filter events for items that have no menu

  4. Rama says:

    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…

  5. hguf says:

    Very Nice Job !

    But only one question : how to render clickable the button in menuBar if it have no menu ?
    Thanks !

  6. Bruno says:

    is there any chance this component is ported to Flex 4.5 ?

  7. Todd Sharp says:

    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?