home *** CD-ROM | disk | FTP | other *** search
/ Canadian Forces: A World of Opportunities / CanadianForces-AWorldOfOpportunities-WinMac.bin / 03_WayLife_FR.swf / scripts / frame_2 / DoAction.as
Text File  |  2006-07-20  |  758b  |  28 lines

  1. function doSomething()
  2. {
  3. }
  4. function doSomething2()
  5. {
  6.    getURL("http://www.recruiting.forces.gc.ca",_blank);
  7. }
  8. getURL("FSCommand:fullscreen",true);
  9. getURL("FSCommand:allowscale",false);
  10. escKey = {};
  11. escKey.onKeyDown = function()
  12. {
  13.    if(Key.getCode() == 27)
  14.    {
  15.       getUrl("FSCommand:quit", "CF_FC.exe");
  16.    }
  17. };
  18. Key.addListener(escKey);
  19. getUrl("FSCommand:trapallkeys", "true");
  20. MENU.customItems.push(Functioned2);
  21. MENU = new ContextMenu();
  22. MENU.hideBuiltInItems();
  23. Functioned = new ContextMenuItem("This movie is copyrighted by CFRG Multimedia Services",doSomething);
  24. Functioned2 = new ContextMenuItem("Visit our website",doSomething2);
  25. MENU.customItems.push(Functioned);
  26. MENU.customItems.push(Functioned2);
  27. _root.menu = MENU;
  28.