home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / orbular.swf / scripts / DefineSprite_120 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-12-12  |  1.1 KB  |  46 lines

  1. stop();
  2. callBack = function(res)
  3. {
  4.    if(res.success)
  5.    {
  6.       gotoAndStop(2);
  7.       var _loc2_ = 0;
  8.       while(_loc2_ < 10)
  9.       {
  10.          var _loc3_ = _loc2_ + 1;
  11.          if(res.list[_loc2_])
  12.          {
  13.             this["kName" + _loc3_] = "#" + _loc3_ + " " + res.list[_loc2_].username + ":";
  14.             this["kScore" + _loc3_] = res.list[_loc2_].score;
  15.          }
  16.          else
  17.          {
  18.             this["kName" + _loc3_] = "";
  19.             this["kScore" + _loc3_] = "";
  20.          }
  21.          _loc2_ = _loc2_ + 1;
  22.       }
  23.    }
  24. };
  25. if(_root.difficulty == "normal")
  26. {
  27.    _root.kongregateScores.setMode("Normal");
  28.    head = "Top 10 - Normal";
  29. }
  30. else if(_root.difficulty == "hard")
  31. {
  32.    _root.kongregateScores.setMode("Hard");
  33.    head = "Top 10 - Hard";
  34. }
  35. else if(_root.difficulty == "endurance")
  36. {
  37.    _root.kongregateScores.setMode("Endurance");
  38.    head = "Top 10 - Endurance";
  39. }
  40. else if(_root.difficulty == "mouse")
  41. {
  42.    _root.kongregateScores.setMode("Mouse");
  43.    head = "Top 10 - Mouse";
  44. }
  45. _root.kongregateScores.requestList(callBack,this);
  46.