Tuesday, 5 June 2007

SSAS snippets

create a randomiser serversided


//application.acceptConnection (Client);
Client.call ("random", new randHandler ());
return Client

//randon handler function
randHandler = function (){
this.onResult = function (res) {
trace ("random num: " + res);
}
this.onStatus = function (info) {
trace ("failed and got:" + info.code);
}
};





No comments: