home *** CD-ROM | disk | FTP | other *** search
/ GKGM 014 / GKGM014.iso / trash / gorillazgroove.swf / scripts / DefineSprite_338 / frame_1 / DoAction.as
Text File  |  2007-01-09  |  752b  |  28 lines

  1. function showScores()
  2. {
  3.    i = 1;
  4.    while(i <= 10)
  5.    {
  6.       iPage = i + page;
  7.       eval("rank" + i).text = iPage;
  8.       eval("playerName" + i).text = _root.scoreCard["playerName" + iPage];
  9.       eval("score" + i).text = _root.scoreCard["score" + iPage];
  10.       eval("face" + i).gotoAndStop(_root.scoreCard["char" + iPage]);
  11.       if(_root.scoreCard["playerName" + iPage] == null)
  12.       {
  13.          eval("playerName" + i).text = "- - - - - - - - - - -";
  14.       }
  15.       if(_root.scoreCard["score" + iPage] == null)
  16.       {
  17.          eval("score" + i).text = "- - - -";
  18.       }
  19.       if(_root.scoreCard["char" + iPage] == null)
  20.       {
  21.          eval("face" + i).gotoAndStop(4);
  22.       }
  23.       i++;
  24.    }
  25. }
  26. page = 0;
  27. showScores();
  28.