home *** CD-ROM | disk | FTP | other *** search
- if(rounds == "0")
- {
- realtime1 = customtimer - starttime;
- realtime4 = realtime3 + realtime2 + realtime1;
- }
- if(rounds == "1")
- {
- realtime2 = customtimer - starttime - realtime1;
- realtime4 = realtime3 + realtime2 + realtime1;
- }
- if(rounds == "2")
- {
- realtime3 = customtimer - starttime - realtime1 - realtime2;
- realtime4 = realtime3 + realtime2 + realtime1;
- }
- if(rounds == "3")
- {
- realtime4 = realtime3 + realtime2 + realtime1;
- tellTarget("/player")
- {
- gotoAndStop(1);
- }
- gotoAndStop(9);
- }
- if(length(realtime1) < "3")
- {
- min = "00";
- sec = "00";
- hhh = "000";
- }
- if(length(realtime1) == "3")
- {
- min = "00";
- sec = "00";
- hhh = realtime1;
- }
- if(length(realtime1) == "4")
- {
- min = "00";
- sec = "0" add realtime1.substr("1","1");
- hhh = realtime1.substr("2","3");
- }
- if(length(realtime1) == "5")
- {
- min = "00";
- sec = realtime1.substr("1","2");
- hhh = realtime1.substr("3","3");
- }
- round1 = min add ":" add sec add ":" add hhh;
- if(length(realtime2) < "3")
- {
- min = "00";
- sec = "00";
- hhh = "000";
- }
- if(length(realtime2) == "3")
- {
- min = "00";
- sec = "00";
- hhh = realtime2;
- }
- if(length(realtime2) == "4")
- {
- min = "00";
- sec = "0" add realtime2.substr("1","1");
- hhh = realtime2.substr("2","3");
- }
- if(length(realtime2) == "5")
- {
- min = "00";
- sec = realtime2.substr("1","2");
- hhh = realtime2.substr("3","3");
- }
- round2 = min add ":" add sec add ":" add hhh;
- if(length(realtime3) < "3")
- {
- min = "00";
- sec = "00";
- hhh = "000";
- }
- if(length(realtime3) == "3")
- {
- min = "00";
- sec = "00";
- hhh = realtime3;
- }
- if(length(realtime3) == "4")
- {
- min = "00";
- sec = "0" add realtime3.substr("1","1");
- hhh = realtime3.substr("2","3");
- }
- if(length(realtime3) == "5")
- {
- min = "00";
- sec = realtime3.substr("1","2");
- hhh = realtime3.substr("3","3");
- }
- round3 = min add ":" add sec add ":" add hhh;
- if(length(realtime4) < "3")
- {
- min = "00";
- sec = "00";
- hhh = "000";
- }
- if(length(realtime4) == "3")
- {
- min = "00";
- sec = "00";
- hhh = realtime4;
- }
- if(length(realtime4) == "4")
- {
- min = "00";
- sec = "0" add realtime4.substr("1","1");
- hhh = realtime4.substr("2","3");
- }
- if(length(realtime4) == "5")
- {
- min = "00";
- sec = realtime4.substr("1","2");
- hhh = realtime4.substr("3","3");
- }
- finish = min add ":" add sec add ":" add hhh;
- play();
-