This MenuBar component allows you to create 2-level menu bar in your Flex applications.
The component takes a dataProvider as an argument just like the MenuBar component provided in Flex platform. But this component just takes dataProvider as XMLListCollection.
In the sample application, menuitem object contains label, requiresLogin and data fields.
- label field is the displayed text for the given menuitem,
- requiresLogin field keeps the information whether the given menu item needs login operation or not,
- data field is used as the id descriptor of the given menu.
When creating a collection of menuitems, give unique data field values for each menuitem.
In the given source code of a sample project, you will see GradientCanvas and GradientHBox components. They are just used to give a gradient for the menubars.
MenuBarEvent keeps the clicked menuitem id, and the information whether the clicked menuitem requires login operation or not to enter that menu.
MenuData, MenuHierarchy, SubmenuData classes are just used for data structure of the menu bar.
Moreover, you will find Gray and Green css files used for the visuality. They are just samples to demonstrate how to give gradients of the menubars, selected menu item color, and so on.
English
Türkçe

Menubar can be also created in flex by another quick way and posted at http://bbso.wordpress.com/2012/02/22/flex-menubar/
How come it is quicker? Actually it is not even another way. You have used the same MenuBar component and used similar xml list as data provider. Plus this post shows how to authorize, style and other menu related stuf.
Hey,
I cant download the zip. Could you share the code and fwd me?
Thanks,
Danny