Flash Custom Right Click Menu

Flash Add comments

Ever wanted to change the menu when a user right clicks (control Click for Mac) on a flash file on the browser. Set this code to your first keyframe and your done, change the links to what ever you like. You can use this for the user to navigate your content as well, a seperate navigation.

//Change the links with in the ” ” to what ever you might like.
function thisLink() {
getURL(“www.linkone.com”, “_blank”);
}
function thisLink2() {
getURL(“http://www.noeone.net”, “_blank”);
}

newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
functioned = new ContextMenuItem(“link one name”, thisLink);
functioned2 = new ContextMenuItem(“NOEONE”, thisLink2);
newMenu.customItems.push(functioned);
newMenu.customItems.push(functioned2);
_root.menu = newMenu;
stop();

Leave a Reply

visit my other website here >> noeone
Entries RSS Comments RSS Log in