home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / PMGRacing.swf / scripts / frame_12 / DoAction.as
Encoding:
Text File  |  2001-07-07  |  649 b   |  43 lines

  1. set("/:time_sec","00");
  2. set("/millisec:time_mil","00");
  3. n = "0";
  4. while(n < "25")
  5. {
  6.    set("/:ob" add n,"0");
  7.    n += "1";
  8. }
  9. setProperty("/timer/ball", _X, "-5");
  10. tellTarget("/car/cars")
  11. {
  12.    gotoAndStop(eval("/:car"));
  13. }
  14. if(car eq "buggy")
  15. {
  16.    tellTarget("/car/cars/sound_buggy")
  17.    {
  18.       nextFrame();
  19.    }
  20. }
  21. if(car eq "hotrod")
  22. {
  23.    tellTarget("/car/cars/sound_hotrod")
  24.    {
  25.       nextFrame();
  26.    }
  27. }
  28. if(car eq "hummer")
  29. {
  30.    tellTarget("/car/cars/sound_hummer")
  31.    {
  32.       nextFrame();
  33.    }
  34. }
  35. if(car eq "hovercraft")
  36. {
  37.    tellTarget("/car/cars/sound_hovercraft")
  38.    {
  39.       nextFrame();
  40.    }
  41. }
  42. stop();
  43.