PDA

View Full Version : Changing Player Menus - Possible or not?



iceflyin
July 31st, 2007, 07:32 AM
When you right click a html text link in a text field, it gives you three options. Open, Open in New Window, and Copy Link.

Is it possible to make "Open in New Window" the Default, and remove Open?

mikedkap
July 31st, 2007, 05:10 PM
Here is some code to customize the right click within Flash - I think that's what you are asking for...


//
function newrightclick() {
getURL("mailto:cris@thebrandingagency.com");
}
function newrightclick2() {
getURL("mailto:brett@thebrandingagency.com");
}
function newrightclick3() {
getURL("mailto:pj@thebrandingagency.com");
}
MENU.customItems.push(Functioned3);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Contact tBa Los Angeles", newrightclick);
Functioned2 = new ContextMenuItem("Contact tBa Denver", newrightclick2);
Functioned3 = new ContextMenuItem("Contact tBa Chicago", newrightclick3);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned3);
_root.menu = MENU;

iceflyin
July 31st, 2007, 07:48 PM
Pretty sweet, thanks!

But, how do I not hide certain items?


ARgh... Now I gotta convert this to AS3... Argh...

mikedkap
July 31st, 2007, 07:54 PM
You could have these customized items read whatever you want them to and do any function you want by changing the code:


function newrightclick3() {
getURL("mailto:pj@thebrandingagency.com");
}