/ Published in: ActionScript
This is something I search for every time I need it. It is taken from: Oleg Lazarenko.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function doSomething(){} function doSomething2(){ getURL("http://www.metamorphozis.com", _blank); } MENU.customItems.push(Functioned2); MENU = new ContextMenu(); MENU.hideBuiltInItems(); Functioned = new ContextMenuItem("This movie is copyrighted by Your Company Name", doSomething); Functioned2 = new ContextMenuItem("Visite Our Website", doSomething2); MENU.customItems.push(Functioned); MENU.customItems.push(Functioned2); _root.menu = MENU;
URL: http://www.flashadvisor.com/tutorial/ActionScript/Customized_Right_Click_Menu_in_Flash-20.html