home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / stat.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.2 KB  |  37 lines

  1. function showHiScoreSaveResult(success)
  2. {
  3.    _global.showMeName = _root.i_name.text;
  4.    gotoAndPlay(5);
  5.    var _loc3_ = parseInt(myVars.res);
  6.    if(_loc3_ == -1 || !success)
  7.    {
  8.       _root.dt_congrats.text = "OOPS :-~\nThere appears to be a problem with the server";
  9.       _root.but_show_me._visible = false;
  10.    }
  11.    else if(_loc3_ == -2)
  12.    {
  13.       _root.dt_congrats.text = "DODGY :-o\nHi-score rejected by the server";
  14.       _root.but_show_me._visible = false;
  15.    }
  16.    else if(_loc3_ == 0)
  17.    {
  18.       _root.dt_congrats.text = "UNLUCKY :-(\nA better score already exists with that name";
  19.       _root.but_show_me._visible = true;
  20.    }
  21.    else if(_loc3_ == 1)
  22.    {
  23.       _root.dt_congrats.text = "CONGRATULATIONS :-)\nYou made it into the hi-score table";
  24.       _root.but_show_me._visible = true;
  25.    }
  26. }
  27. stop();
  28. _global.gameId = "2";
  29. _global.svrUrl = "http://frenzy.morpheme.co.uk/";
  30. _global.gameUrl = _global.svrUrl + "frenzy/";
  31. _global.gameIdParam = "?gameId=" + _global.gameId;
  32. _global.vidzUrl = _global.gameUrl + "vidz/";
  33. _global.servletUrl = _global.svrUrl + "servlet/hiServlet";
  34. _global.macroCheck = new Array(26);
  35. _global.macroCheckFlags = new Array(26);
  36. _global.finalTime = 0;
  37.