📄 main.asc
字号:
load ("netservices.asc");
//
application.onConnect = function (client, _name)
{
trace (_name);
if (_name != "yaoyao")
{
this.rejectConnection (client,
{
msg : "服务器只认识yaoyao,其它人等拒绝连接,嘿嘿~"
});
} else
{
this.acceptConnection (client);
//
NetServices.setDefaultGatewayUrl ("http://localhost/RemotingApp/gateway.aspx");
var conn = NetServices.createGatewayConnection ();
var myService = conn.getService ("RemotingApp", this);
myService.TestDemo();
application.TestDemo_Result = function (result_obj)
{
trace(result_obj);
client.call ("ret_result", null, result_obj);
}
}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -