home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2008-09-24  |  2.2 KB  |  98 lines

  1. function menuChange(where)
  2. {
  3.    _root.where = where;
  4.    MenuFade.play();
  5. }
  6. function detail(what)
  7. {
  8.    details[what] = true;
  9. }
  10. function ls()
  11. {
  12.    if(_root.musicPlay == undefined)
  13.    {
  14.       _root.createEmptyMovieClip("musicHolder",100000);
  15.       music = new Sound(_root.musicHolder);
  16.       music.attachSound("cursorstorm");
  17.       music.setVolume(70);
  18.       music.start(0,99999);
  19.       _root.musicPlay = 1;
  20.       if(!_root.sound)
  21.       {
  22.          music.setVolume(0);
  23.       }
  24.    }
  25.    _root.createEmptyMovieClip("soundHolder",99999);
  26.    carEngine = new Sound(_root.soundHolder);
  27.    carEngine.attachSound("engine");
  28.    steam = new Sound(_root.car);
  29.    steam.attachSound("steam");
  30.    steamSide = new Sound(_root.f1);
  31.    steamSide.attachSound("steamSide");
  32.    steamSideB = new Sound(_root.f3);
  33.    steamSideB.attachSound("steamSide");
  34.    _root.createEmptyMovieClip("crashSound",90949);
  35.    crash = new Sound(_root.crashSound);
  36.    crash.attachSound("crash");
  37.    crash.setVolume(70);
  38.    crash2 = new Sound(_root.crashSound);
  39.    crash2.attachSound("crash2");
  40.    crash2.setVolume(70);
  41.    crash3 = new Sound(_root.crashSound);
  42.    crash3.attachSound("crash3");
  43.    crash3.setVolume(70);
  44.    fuelS = new Sound();
  45.    fuelS.attachSound("fuelS");
  46.    swallow = new Sound();
  47.    swallow.attachSound("swallow");
  48.    gravityR = new Sound(bg);
  49.    gravityR.setVolume(200);
  50.    gravityR.attachSound("gravityR");
  51.    ufoDead = new Sound();
  52.    ufoDead.attachSound("ufoDead");
  53.    button = new Sound();
  54.    button.attachSound("button");
  55. }
  56. function cSound()
  57. {
  58.    if(_root.sound)
  59.    {
  60.       c = random(3);
  61.       if(c == 0)
  62.       {
  63.          _root.crash.start();
  64.       }
  65.       if(c == 1)
  66.       {
  67.          _root.crash2.start();
  68.       }
  69.       if(c == 2)
  70.       {
  71.          _root.crash3.start();
  72.       }
  73.    }
  74. }
  75. stop();
  76. depthHolder = 0;
  77. stop();
  78. cheat = false;
  79. _root.details = new Object();
  80. if(_root.menuMP == undefined)
  81. {
  82.    _root.sound = true;
  83.    _root.createEmptyMovieClip("menuMH",992929);
  84.    _root.menuMP = 1;
  85.    menuM = new Sound(_root.menuMH);
  86.    menuM.attachSound("menuM");
  87.    if(_root.sound)
  88.    {
  89.       menuM.start(0,99999);
  90.    }
  91.    if(!_root.sound)
  92.    {
  93.       menuM.start();
  94.       menuM.setVolume(0);
  95.    }
  96. }
  97. extra = false;
  98.