So i had a very quick play, and something like this kinda works:
var menu:Menu = ComponentMacros.buildComponent("assets/menu.xml");
Screen.instance.registerEvent(MouseEvent.RIGHT_CLICK, function(e:MouseEvent) {
menu.left = e.screenX;
menu.top = e.screenY;
Screen.instance.addComponent(menu);
});
However, ive noticed some inconsistencies and bugs to be honest, which ill fix shortly / tomorrow. Ive defo used context menus myself in various apps, so i just need to double check how i did things there and maybe make some updates to core.
