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

  1. stop();
  2. getsc_lv = new LoadVars();
  3. getsc_lv.bid = 10;
  4. rec_lv = new LoadVars();
  5. getsc_lv.sendAndLoad("http://bot.pldmstudios.com/g10.php",rec_lv,"POST");
  6. i = 1;
  7. while(i < 11)
  8. {
  9.    _root["pl" + i].text = "loading";
  10.    _root["sc" + i].text = "loading";
  11.    i++;
  12. }
  13. rec_lv.onLoad = function(success)
  14. {
  15.    if(success)
  16.    {
  17.       i = 1;
  18.       while(i < 11)
  19.       {
  20.          _root["pl" + i].text = rec_lv["name" + i];
  21.          _root["sc" + i].text = rec_lv["score" + i];
  22.          i++;
  23.       }
  24.    }
  25.    else
  26.    {
  27.       gotoAndStop("menu");
  28.       play();
  29.    }
  30. };
  31.