I have a menu bar component
<mx:MenuBar id="mainMenu" labelField="@label"
click="{MenuEvent(event)}"
itemClick="{MenuItemEvent(event)}">
Everytime I create a handler like this:
private function MenuItemEvent(e:MenuEvent):void
I get a "Type was not found or was not a compile-time constant: MenuEvent"
But, I've explicitly imported this event:
import mx.events.MenuEvent;
Am I going mad? What am I doing wrong? I'm using standalone Flex Builder
3.0.2.214193 on Windows XP- not the Eclipse plug-in.
Please help,
William Chadwick