home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / FlashRacer.swf / scripts / frame_7 / DoAction.as
Encoding:
Text File  |  2001-07-07  |  2.4 KB  |  126 lines

  1. if(rounds == "0")
  2. {
  3.    realtime1 = customtimer - starttime;
  4.    realtime4 = realtime3 + realtime2 + realtime1;
  5. }
  6. if(rounds == "1")
  7. {
  8.    realtime2 = customtimer - starttime - realtime1;
  9.    realtime4 = realtime3 + realtime2 + realtime1;
  10. }
  11. if(rounds == "2")
  12. {
  13.    realtime3 = customtimer - starttime - realtime1 - realtime2;
  14.    realtime4 = realtime3 + realtime2 + realtime1;
  15. }
  16. if(rounds == "3")
  17. {
  18.    realtime4 = realtime3 + realtime2 + realtime1;
  19.    tellTarget("/player")
  20.    {
  21.       gotoAndStop(1);
  22.    }
  23.    gotoAndStop(9);
  24. }
  25. if(length(realtime1) < "3")
  26. {
  27.    min = "00";
  28.    sec = "00";
  29.    hhh = "000";
  30. }
  31. if(length(realtime1) == "3")
  32. {
  33.    min = "00";
  34.    sec = "00";
  35.    hhh = realtime1;
  36. }
  37. if(length(realtime1) == "4")
  38. {
  39.    min = "00";
  40.    sec = "0" add realtime1.substr("1","1");
  41.    hhh = realtime1.substr("2","3");
  42. }
  43. if(length(realtime1) == "5")
  44. {
  45.    min = "00";
  46.    sec = realtime1.substr("1","2");
  47.    hhh = realtime1.substr("3","3");
  48. }
  49. round1 = min add ":" add sec add ":" add hhh;
  50. if(length(realtime2) < "3")
  51. {
  52.    min = "00";
  53.    sec = "00";
  54.    hhh = "000";
  55. }
  56. if(length(realtime2) == "3")
  57. {
  58.    min = "00";
  59.    sec = "00";
  60.    hhh = realtime2;
  61. }
  62. if(length(realtime2) == "4")
  63. {
  64.    min = "00";
  65.    sec = "0" add realtime2.substr("1","1");
  66.    hhh = realtime2.substr("2","3");
  67. }
  68. if(length(realtime2) == "5")
  69. {
  70.    min = "00";
  71.    sec = realtime2.substr("1","2");
  72.    hhh = realtime2.substr("3","3");
  73. }
  74. round2 = min add ":" add sec add ":" add hhh;
  75. if(length(realtime3) < "3")
  76. {
  77.    min = "00";
  78.    sec = "00";
  79.    hhh = "000";
  80. }
  81. if(length(realtime3) == "3")
  82. {
  83.    min = "00";
  84.    sec = "00";
  85.    hhh = realtime3;
  86. }
  87. if(length(realtime3) == "4")
  88. {
  89.    min = "00";
  90.    sec = "0" add realtime3.substr("1","1");
  91.    hhh = realtime3.substr("2","3");
  92. }
  93. if(length(realtime3) == "5")
  94. {
  95.    min = "00";
  96.    sec = realtime3.substr("1","2");
  97.    hhh = realtime3.substr("3","3");
  98. }
  99. round3 = min add ":" add sec add ":" add hhh;
  100. if(length(realtime4) < "3")
  101. {
  102.    min = "00";
  103.    sec = "00";
  104.    hhh = "000";
  105. }
  106. if(length(realtime4) == "3")
  107. {
  108.    min = "00";
  109.    sec = "00";
  110.    hhh = realtime4;
  111. }
  112. if(length(realtime4) == "4")
  113. {
  114.    min = "00";
  115.    sec = "0" add realtime4.substr("1","1");
  116.    hhh = realtime4.substr("2","3");
  117. }
  118. if(length(realtime4) == "5")
  119. {
  120.    min = "00";
  121.    sec = realtime4.substr("1","2");
  122.    hhh = realtime4.substr("3","3");
  123. }
  124. finish = min add ":" add sec add ":" add hhh;
  125. play();
  126.