We Recommend

Visual Basic 2008 Programmer's Reference Visual Basic 2008 Programmer's Reference
Visual Basic Orcas Programmer's Reference is a language tutorial and a reference guide to the upcoming Orcas release of Visual Basic. The tutorial provides basic material suitable for beginners but also includes in-depth content for more advanced developers.


Posted By

SmpleJohn on 01/16/08


Tagged

menu click right custom


Versions (?)


Who likes this?

6 people have marked this snippet as a favorite

SmpleJohn
imhugo
skywalker
arala22
catchamonkey
rd3k


Custom Right Click Menu - Flash AS 2.0


Published in: ActionScript 


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

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

  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;

Report this snippet 

You need to login to post a comment.