Invoke server-side application method by Administrator API
Hi!
By using Administration API I would like to invoke a method from myApplication.asc
I only found the broadcastMsg() method but AFAIK it omits FMS and broadcast Msg directly to users.
http://myIP:1111/admin/broadcastMsg?auser=myUser&apswd=myPassword&scope="App:myAplication"&method="testMethod"&arg0="123"&arg1="456"
And it works.
The ideal thing it would be if I could invoke methods from my main.asc. e.g.
application.onAppStart = function() {
}
application.testMethod1 = function(arg1, arg2) {
//maybe this way?
}
application.onConnect = function(newClient, userData) {
newClient.testMethod2 = function(arg1, arg2) {
// or this way?
}
}
Client.prototype.testMethod2 = function(newClient, userData) {
//or maybe this way?
}
Is there any way to invoke those methods not using a flash swf file?
T76
