home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / frog_day.swf / scripts / DefineSprite_336 / frame_31 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  519 b   |  31 lines

  1. if("1000" < Now)
  2. {
  3.    Minutes = int(Now.substr("1",length(Now) - "3") / "60");
  4.    Seconds = int(Now.substr("1",length(Now) - "3") - Minutes * "60");
  5. }
  6. Centiseconds = int(Now.substr(length(Now) - "2","2"));
  7. if(Centiseconds < "10")
  8. {
  9.    Centiseconds = "0" add Centiseconds;
  10. }
  11. if(Seconds < "10")
  12. {
  13.    Seconds = "0" add Seconds;
  14. }
  15. if(Minutes < "10")
  16. {
  17.    Minutes = "0" add Minutes;
  18. }
  19. if("59" < int(Minutes))
  20. {
  21.    call("Reset");
  22. }
  23. if(Seconds >= "1")
  24. {
  25.    play();
  26. }
  27. else
  28. {
  29.    gotoAndPlay(21);
  30. }
  31.