Hey,
To remove Content:
var rootMenu = new ContextMenu();
rootMenu.hideBuiltInItems();
_root.menu = rootMenu;
Another way to Remove content:
Stage.showMenu = false;
Right click detect:
onEnterFrame = function () {
if (Key.isDown(2)) {
trace("Your right clicking")
}
}
To add to the "Right Click" menu system(also including functions):
Right Click Menu
//////////////////
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();
///////////////////////////////////////////////////////////////////////////////////
var Load_menu:ContextMenuItem = new ContextMenuItem("LOAD GCODE", load_fun, true, true, true);
var edit_menu:ContextMenuItem = new ContextMenuItem("Edit GCODE", edit_fun, false, true, true);
myMenu.customItems.push(Load_menu,edit_menu);
_root.menu = myMenu;
/////////////////////////////////////
function load_fun() {
fscommand("Button", "216");
}
function edit_fun() {
fscommand("Button", "115");
}
Thanks,
Jason Blake