home *** CD-ROM | disk | FTP | other *** search
/ The Great Adventure of Natural Gas / start / start.swf / scripts / DefineSprite_344 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-01-01  |  1.4 KB  |  79 lines

  1. function pasQuit()
  2. {
  3.    this._visible = false;
  4.    _parent.menu.gotoAndPlay("grand");
  5.    _parent.menu._visible = true;
  6. }
  7. stop();
  8. res1.onRelease = function()
  9. {
  10.    fscommand("fullscreen",false);
  11.    fscommand("exec","fiche1.bat");
  12. };
  13. res1.onRollOver = function()
  14. {
  15.    _parent.playSound("chcloc.wav",50);
  16.    res1.gotoAndStop(2);
  17. };
  18. res1.onRollOut = function()
  19. {
  20.    res1.gotoAndStop(1);
  21. };
  22. res2.onRelease = function()
  23. {
  24.    fscommand("fullscreen",false);
  25.    fscommand("exec","fiche2.bat");
  26. };
  27. res2.onRollOver = function()
  28. {
  29.    _parent.playSound("chcloc.wav",50);
  30.    res2.gotoAndStop(2);
  31. };
  32. res2.onRollOut = function()
  33. {
  34.    res2.gotoAndStop(1);
  35. };
  36. res3.onRollOver = function()
  37. {
  38.    _parent.playSound("chcloc.wav",50);
  39.    res3.gotoAndStop(2);
  40. };
  41. res3.onRollOut = function()
  42. {
  43.    res3.gotoAndStop(1);
  44. };
  45. res3.onRelease = function()
  46. {
  47.    fscommand("fullscreen",false);
  48.    fscommand("exec","fiche3.bat");
  49. };
  50. _visible = false;
  51. res4.onRollOver = function()
  52. {
  53.    _parent.playSound("chcloc.wav",50);
  54.    res4.gotoAndStop(2);
  55. };
  56. res4.onRollOut = function()
  57. {
  58.    res4.gotoAndStop(1);
  59. };
  60. res4.onRelease = function()
  61. {
  62.    _parent.btnCredits.softGo(1,3.5,1.8);
  63. };
  64. cache = true;
  65. _visible = false;
  66. btnClose.onRollOver = function()
  67. {
  68.    btnClose.gotoAndPlay("in");
  69. };
  70. btnClose.onRollOut = function()
  71. {
  72.    btnClose.gotoAndPlay("out");
  73. };
  74. btnClose.onRelease = function()
  75. {
  76.    fscommand("fullscreen",true);
  77.    pasQuit();
  78. };
  79.