I have a menuBar that looks like this:
<mx:MenuBar id="myMenuBar" labelField="@label" cornerRadius="8" color="black" fillColors="[green, green]" itemClick="menuItemClickHandler(event);"
dataProvider="{menuBarCollection}" change="onTopSelection(event)" />
The XML for my menuBar looks like this:
<menuitem label="Vision">
</menuitem>
<menuitem label="About">
<menuitem label="Our Team"/>
<menuitem label="Services"/>
</menuitem>
<menuitem label="Contact Us">
</menuitem>
As you can see there is Vision and Contact Us but the eventHandler doesn't know when those two are clicked. What is the correct way to implement the eventHandler?