home *** CD-ROM | disk | FTP | other *** search
- function connectSWHiscore(functionType, hiscoreID, scoreNum)
- {
- var _loc1_ = this;
- _loc1_.createEmptyMovieClip("httpObj",_loc1_.httpObjDepth);
- switch(functionType)
- {
- case "view":
- _loc1_.httpObj.gameid = _loc1_.gameID;
- _loc1_.httpObj.hiscoreid = hiscoreID;
- _loc1_.httpObj.getURL(_loc1_.viewHURL,"_blank","POST");
- break;
- case "submit":
- _loc1_.recieve_lv = new LoadVars();
- _loc1_.recieve_lv.hiscoreConnector = _loc1_;
- _loc1_.recieve_lv.onLoad = function(isSuccess)
- {
- var _loc1_ = this;
- if(isSuccess)
- {
- _loc1_.hiscoreConnector.httpObj.tempID = _loc1_.tempID;
- _loc1_.hiscoreConnector.httpObj.getURL(_loc1_.hiscoreConnector.submitGetHURL,"_blank","GET");
- }
- };
- _loc1_.submit_lv = new LoadVars();
- _loc1_.submit_lv.score = scoreNum;
- _loc1_.submit_lv.gameid = _loc1_.gameID;
- _loc1_.submit_lv.hiscoreid = hiscoreID;
- _loc1_.submit_lv.sendAndLoad(_loc1_.submitPostHURL,_loc1_.recieve_lv,"POST");
- }
- }
- this.swc_mc._visible = false;
- this.viewHURL = "http://hiscore.jp.shockwave.com/rank/member/control/listscore.php";
- this.submitPostHURL = "http://hiscore.jp.shockwave.com/rank/member/control/maketemp.php";
- this.submitGetHURL = "http://hiscore.jp.shockwave.com/rank/member/control/logintemp.php";
-