Custom Right Click Menu - Flash AS 2.0


/ Published in: ActionScript
Save to your folder(s)

This is something I search for every time I need it. It is taken from: Oleg Lazarenko.


Copy this code and paste it in your HTML
  1. function doSomething(){}
  2. function doSomething2(){
  3. getURL("http://www.metamorphozis.com", _blank);
  4. }
  5.  
  6. MENU.customItems.push(Functioned2);
  7. MENU = new ContextMenu();
  8. MENU.hideBuiltInItems();
  9.  
  10. Functioned = new ContextMenuItem("This movie is copyrighted by Your Company Name", doSomething);
  11. Functioned2 = new ContextMenuItem("Visite Our Website", doSomething2);
  12.  
  13. MENU.customItems.push(Functioned);
  14. MENU.customItems.push(Functioned2);
  15. _root.menu = MENU;

URL: http://www.flashadvisor.com/tutorial/ActionScript/Customized_Right_Click_Menu_in_Flash-20.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.