PDA

View Full Version : Right Click Menu


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.

Flash Gordon
08-08-2006, 08:33 PM
no.

jcerutti81
08-08-2006, 09:20 PM
Thanks for the quick response. I have a followup question in this same vein. Is there a way to capture and store the exact coordinates of the movie the user right clicked on? I want to be able to use those coordinates to display an images in that same spot.

thanks.

Flash Gordon
08-08-2006, 09:44 PM
something about Key.isDown(2), but I can't get it to work.

Good luck.