home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / hoverbot_2.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  654 b   |  27 lines

  1. function david()
  2. {
  3.    getUrl("http://www.freewebs.com/true_darkness/index.htm", "_blank");
  4. }
  5. function muter()
  6. {
  7.    _root.all.setVolume((_X + 0) / 0);
  8. }
  9. function mutera()
  10. {
  11.    _root.all.setVolume((_X + 120) / 1.9);
  12. }
  13. stop();
  14. onLoad = function()
  15. {
  16.    _root.all = new Sound();
  17. };
  18. var menu = new ContextMenu();
  19. menu.hideBuiltInItems();
  20. var truedarkness = new ContextMenuItem("True_Darkness",david);
  21. var mute = new ContextMenuItem("Sound Off",muter);
  22. var mutee = new ContextMenuItem("Sound On",mutera);
  23. menu.customItems.push(truedarkness,mute,mutee);
  24. menu.builtInItems.quality = true;
  25. menu.onSelect = menuHandler;
  26. _root.menu = menu;
  27.