View Single Post
  #4  
Old 06-17-2008, 05:38 AM
cheathamlane cheathamlane is offline
Senior Member
 
Join Date: Mar 2007
Location: Berkeley, California, USA
Posts: 774
Downloads: 0
Uploads: 0
Send a message via AIM to cheathamlane
Default

I think you might need to add the FPP info back in, after any customization to the Context Menu (I could be wrong).

But, in AS3, you can make a plugin or use an embedPano style setup and alter the context menu anyway you see fit (within the FPP licensing model of course).
Code:
var my_cm:ContextMenu = new ContextMenu(menuHandler);
//my_cm.hideBuiltInItems(); //only use to obscure existing menu items
my_cm.customItems.push(new ContextMenuItem("FlashPanos", itemHandler));
my_cm.customItems.push(new ContextMenuItem("CheathamLane", itemHandler2));
function menuHandler(obj, menuObj) {
	if (showItem == false) {
		menuObj.customItems[0].enabled = false;
	} else {
		menuObj.customItems[0].enabled = true;
	}
}
function itemHandler(obj, item) {
	getURL("http://www.flashpanos.com", "_blank");
}
function itemHandler2(obj, item) {
	getURL("http://www.cheathamlane.net", "_blank");
}
this.menu = my_cm;
__________________
Patrick
http://cheathamlane.net
--
Tutorials: Embed Pano 101, Pano auto-presentation
Reply With Quote