I’m completely confused by this. An Adobe Flex WindowedApplication has a ‘menu’ property, which by default is assigned a FlexNativeMenu instance, which is used to create a native menu tree for the application.
For example, on OS X, if I create a WindowedApplication, I get the standard ‘application menu’, ‘File’, ‘Edit’ and ‘Window’ menus created on startup.
The question is, how do I append additional menus to this without creating an entirely new menu? I want to use the default OS X menus as a starting point and add my own.
If I assign menu = new FlexNativeMenu; I just get a completely empty application bar with no menus at all.
This is going to work differently for Windows and Mac OS. My code looks something like this:
The
buildMenu()function then does a bunch of work to build the menu.