以下为引用的内容: function userlogin(_newclient,usrname,usrpwd){ trace("用户登录") thisobj=this //用户登录gamelogin() var login = new loadvars() login.onload = function(success) { if (success) { if (this.usrokflag == "ok") { trace(usrname+"登录成功") application.acceptconnection (_newclient); //取数据过程 _newclient.mydata=this.data //发送给客户端,登录成功。让它初始 _newclient.call("init") } } else { application.rejectconnection (_newclient, "登录失败!") } }; sendurl="http://www.xxx.com/xxx.aspx?usrname="+usrname+"&usrpwd"+usrpwd+"&" login.sendandload(sendurl, login, "get"); // } application.onconnect = function(newclient,usrname,usrpwd) { userlogin(newclient,usrname,usrpwd) }; // |
新闻热点
疑难解答