PDA

View Full Version : No right click menu



fileserverdirect
02-26-2007, 05:23 PM
Hi,
I was wondering how some websites did it.
When You right-click on a flash doc in a website, a menu comes up saying:
Settings
About Macromedia Flash Player
Whenever I Publish a flash doc, All these Zoom In and Zoom Out tools... Plus many more. How Do I get my document to only display those two selections.

P.S. I am also runing Flash 8 Pro (The latest)

BLiZZaRD
02-26-2007, 05:33 PM
Make a new context menu. Depending on your set up you may have to call it twice, or more (one for each scene/movie/load() etc.)

But basically just add this to the first frame of the first scene:



/*********/
var my_cm:ContextMenu = new ContextMenu();
my_cm.builtInItems.quality = false;
my_cm.builtInItems.print = false;
my_cm.builtInItems.save = false;
my_cm.builtInItems.zoom = false;
my_cm.builtInItems.play = false;
my_cm.builtInItems.loop = false;
my_cm.builtInItems.rewind = false;
my_cm.builtInItems.forward_back = false;
my_cm.builtInItems.print = false;
this.menu = my_cm;
/***********/


Change the "false" to "true" for anything you want to show.

fileserverdirect
02-26-2007, 08:47 PM
It works :-)

Thank You,

BLiZZaRD
02-26-2007, 10:41 PM
Welcome. Note that in Flash you can NOT remove the "settings" or the "about" from the menu (which is why you see them in the examples in your first post :) )