home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / redbeard.swf / scripts / DefineSprite_427 / frame_17 / DoAction.as
Encoding:
Text File  |  2008-09-12  |  842 b   |  34 lines

  1. if(getTimer() > timeOut)
  2. {
  3.    timeOut = getTimer() + timeOutVal;
  4.    completed = false;
  5.    gotoAndPlay(20);
  6. }
  7. else if(mcHighScoreData.records > 0)
  8. {
  9.    mcHighScoreData.positionDaily = mcHighScoreData.position;
  10.    if(scoreIsTime)
  11.    {
  12.       mcHighScoreData.notSentScore = convertScoreToTime(localScore);
  13.    }
  14.    var i = 0;
  15.    while(i < mcHighScoreData.high)
  16.    {
  17.       mcHighScoreData["userNameDaily" + i] = mcHighScoreData["user_name" + i];
  18.       mcHighScoreData["scoreDaily" + i] = mcHighScoreData["score" + i];
  19.       mcHighScoreData["dateDaily" + i] = mcHighScoreData["date" + i];
  20.       i++;
  21.    }
  22.    gotoAndPlay(34);
  23. }
  24. else
  25. {
  26.    if(getTimer() > everyNSeconds)
  27.    {
  28.       getHighScores(2,mcHighScoreData);
  29.       everyNSeconds = getTimer() + 2000;
  30.       trace("try");
  31.    }
  32.    gotoAndPlay(_currentframe - 1);
  33. }
  34.