home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / dragracer.swf / scripts / frame_467 / DoAction.as < prev   
Encoding:
Text File  |  2005-10-06  |  430 b   |  22 lines

  1. if(STORY)
  2. {
  3.    gotoAndStop("STORYWIN");
  4.    play();
  5. }
  6. player.cash += wager;
  7. time = Math.round(cdata.t / 1200) add ":" add (Math.round(cdata.t) % 600 / 10 + Math.round(Math.random() * 9));
  8. var i = 1;
  9. while(i <= 6)
  10. {
  11.    _root["g" add i] = Math.round(TopSpeed[i]) add "MPH";
  12.    i++;
  13. }
  14. topspeed_t = Math.round(topspeed_t) add "MPH";
  15. _quality = QUALITY;
  16. if(STORY)
  17. {
  18.    gotoAndStop("STORYWIN");
  19.    play();
  20. }
  21. stop();
  22.