ContextMenu Submenu Issue
I'm having trouble getting the submenu to work on this right-click ContextMenu.
Here is my code:
var ignContext:ContextMenuItem = new ContextMenuItem("Ignition Status");
var ignSubContext:ContextMenu = new ContextMenu;
var onContext:ContextMenuItem = new ContextMenuItem("On");
var offContext:ContextMenuItem = new ContextMenuItem("Off");
ignSubContext.addItem(onContext);
ignSubContext.addItem(offContext);
ignContext.submenu = ignSubContext;
When I right-click, I see the "Ignition Status" with the little arrow indicating that it has a submenu, but the submenu does not list anything when I mouse-over it or click on it. I used this same method when I created the File drop-down menu with submenus, but it doesn't seem to work correctly here.
Edit:
I should also note that "ignContext" is added to myContextMenu:ContextMenu then I set this.contextMenu = myContextMenu.