home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / monochrome.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2005-08-26  |  1.1 KB  |  38 lines

  1. function itemHandler2(obj, item)
  2. {
  3.    getUrl("mailto:glaielgamesmail@comcast.net", "_blank");
  4. }
  5. function itemHandler3(obj, item)
  6. {
  7.    getUrl("http://www.glaielgames.com", "_blank");
  8. }
  9. function itemHandler4(obj, item)
  10. {
  11.    getUrl("http://www.gamesofgondor.com", "_blank");
  12. }
  13. function itemHandler5(obj, item)
  14. {
  15.    _quality = "high";
  16. }
  17. function itemHandler6(obj, item)
  18. {
  19.    _quality = "medium";
  20. }
  21. function itemHandler7(obj, item)
  22. {
  23.    _quality = "low";
  24. }
  25. root_cm = new ContextMenu();
  26. root_cm.hideBuiltInItems();
  27. bbb_cmi = new ContextMenuItem("E-Mail Me",itemHandler2);
  28. ccc_cmi = new ContextMenuItem("Visit Glaiel Games",itemHandler3);
  29. ddd_cmi = new ContextMenuItem("Visit Games of Gondor",itemHandler4);
  30. eee_cmi = new ContextMenuItem("High Quality",itemHandler5);
  31. fff_cmi = new ContextMenuItem("Mid Quality",itemHandler6);
  32. ggg_cmi = new ContextMenuItem("Low Quality",itemHandler7);
  33. ccc_cmi.separatorBefore = true;
  34. eee_cmi.separatorBefore = true;
  35. root_cm.customItems.push(aaa_cmi,bbb_cmi,ccc_cmi,ddd_cmi,eee_cmi,fff_cmi,ggg_cmi);
  36. _root.menu = root_cm;
  37. _quality = "MEDIUM";
  38.