jcerutti81
08-08-2006, 08:30 PM
Hi All,
I'm using the following code to produce custom right click menu's when a user right-clicks on my flash movie. The reason i'm doing this is to simulate a software program.
var groupCM = new ContextMenu();
groupCM.hideBuiltInItems();
var item1 = new ContextMenuItem("Hide", nothing, false, true, true);
groupCM.customItems.push(item1);
var item2 = new ContextMenuItem("Format...", nextStep, false, true, true);
groupCM.customItems.push(item2);
var item3 = new ContextMenuItem("Set as Sort Value", nothing, true, false, true);
groupCM.customItems.push(item3);
function nothing(){
}
function nextStep() {
gotoAndPlay("Scene 1", "screen2");
}
account.menu = groupCM;
The code works well except that I cannot remove the "Settings" and "About Macromedia Flash Player 8..." from the bottom of the menu.
Is this possible to do? Any help would be greatly appreciated.
I'm using the following code to produce custom right click menu's when a user right-clicks on my flash movie. The reason i'm doing this is to simulate a software program.
var groupCM = new ContextMenu();
groupCM.hideBuiltInItems();
var item1 = new ContextMenuItem("Hide", nothing, false, true, true);
groupCM.customItems.push(item1);
var item2 = new ContextMenuItem("Format...", nextStep, false, true, true);
groupCM.customItems.push(item2);
var item3 = new ContextMenuItem("Set as Sort Value", nothing, true, false, true);
groupCM.customItems.push(item3);
function nothing(){
}
function nextStep() {
gotoAndPlay("Scene 1", "screen2");
}
account.menu = groupCM;
The code works well except that I cannot remove the "Settings" and "About Macromedia Flash Player 8..." from the bottom of the menu.
Is this possible to do? Any help would be greatly appreciated.