I have been employed to help with flex page building and three days into learning about flash builder I have been given a tast to change the way top-level items are higlhlighted in a menubar. Currently it's default, so the items change their colours to blue when hoovered over.
What I want to do is to make the text get underlined when hoovered over with a mouse, and not change its colour to blue.
Tried changing it through CSS, but the only thing that changes are the submenu items, not the top level:
Code in main application responsible for menubar kept in a BorderContainer:
<mx:MenuBar id="mbPrimaryMenu" height="40" labelField="@label"
dataProvider="{primaryMenuItems}" change="mbPrimaryMenuChangeHandler(event)"/>
CSS responsible forformatting of what I thought was the entire menubar (top-level elements included):
#mbPrimaryMenu {
chromeColor: #333333;
borderVisible: true;
borderColor: #000000;
borderAlpha: 0;
borderStyle: solid;
borderWeight: 2;
color: #FFFFFF;
contentBackgroundColor: #333333;
contentBackgroundAlpha: 0.8;
rollOverColor: #AAAAAA;
itemRollOverColor: #FF0000;
How do I do this? CSS, MenuBarItemRenderer? Where do I look for the way menubar highlights its elements when mouse rolls over one of its elements?