home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / 3lines.swf / scripts / DefineSprite_143 / frame_1 / DoAction.as
Encoding:
Text File  |  2005-10-06  |  549 b   |  27 lines

  1. score = 10000 - Math.floor(_parent.clear_time / 1000);
  2. CGIFile = "http://www.gamedesign.jp/cgi-bin/lines/hisc.cgi?" + Math.floor(Math.random() * 1000);
  3. myLoadVars = new LoadVars();
  4. myLoadVars.onLoad = function(success)
  5. {
  6.    rank_in = false;
  7.    i = 0;
  8.    while(i < 10)
  9.    {
  10.       if(Number(myLoadVars["score" + i]) < score)
  11.       {
  12.          rank_in = true;
  13.       }
  14.       i++;
  15.    }
  16.    if(rank_in == true)
  17.    {
  18.       gotoAndStop("entry");
  19.    }
  20.    else
  21.    {
  22.       gotoAndStop("view");
  23.    }
  24. };
  25. myLoadVars.load(CGIFile);
  26. stop();
  27.