home *** CD-ROM | disk | FTP | other *** search
- function showHiScoreSaveResult(success)
- {
- _global.showMeName = _root.i_name.text;
- gotoAndPlay(5);
- var _loc3_ = parseInt(myVars.res);
- if(_loc3_ == -1 || !success)
- {
- _root.dt_congrats.text = "OOPS :-~\nThere appears to be a problem with the server";
- _root.but_show_me._visible = false;
- }
- else if(_loc3_ == -2)
- {
- _root.dt_congrats.text = "DODGY :-o\nHi-score rejected by the server";
- _root.but_show_me._visible = false;
- }
- else if(_loc3_ == 0)
- {
- _root.dt_congrats.text = "UNLUCKY :-(\nA better score already exists with that name";
- _root.but_show_me._visible = true;
- }
- else if(_loc3_ == 1)
- {
- _root.dt_congrats.text = "CONGRATULATIONS :-)\nYou made it into the hi-score table";
- _root.but_show_me._visible = true;
- }
- }
- stop();
- _global.gameId = "2";
- _global.svrUrl = "http://frenzy.morpheme.co.uk/";
- _global.gameUrl = _global.svrUrl + "frenzy/";
- _global.gameIdParam = "?gameId=" + _global.gameId;
- _global.vidzUrl = _global.gameUrl + "vidz/";
- _global.servletUrl = _global.svrUrl + "servlet/hiServlet";
- _global.macroCheck = new Array(26);
- _global.macroCheckFlags = new Array(26);
- _global.finalTime = 0;
-