hey guys i am trying to make my own right click menu for my site but it seems that i can’t figure it out in AS3 !!! i even looked livedocs but i don’t find any error…
can anyone please help finding what’s going on wrong with my code and the right click menu doesn’t work ?? it just stays the default one and not mine as it should!!!
this is my package i am using…
package {
import flash.net.URLRequest;
import flash.ui.ContextMenu;
import flash.ui.ContextMenuBuiltInItems;
import flash.ui.ContextMenuItem;
class myRightClick extends ContextMenu
public function myRightClick()
{
public var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice:ContextMenuItem = new ContextMenuItem("@ V-Men 2007");
var mySiteLink:ContextMenuItem = new ContextMenuItem("VolleyMen Homepage");
copyrightNotice.separatorBefore = true;
myMenu.customItems.push(mySiteLink, copyrightNotice);
private function deadClick() {
}
private function gotoMySite() {
var mySite:URLRequest = new URLRequest("http://www.webng.com/volleyman/");
navigateToURL(mySite);
}
}
}