OnSync for SharedObject isn't working.
Hey there,
I am searching for the syntax to call an OnSync event on the server-side. I tried this one but there is neither a compiling error nor anything that is traced.
application.onAppStart = function(){
trace("onAppstart");
userList_so = SharedObject.get("userList", false);
userList_so.onSync=SyncUserList;
}
function SyncUserList(info){
trace("sync User List");
}
application.onConnect=function(client,userID,username){
trace("on Connect");
userList_so.setProperty(userID, {name:username, score:0, priority:-1});
application.acceptConnection(client);
}
Log:
2009-08-07 09:54:46 960 (s)2641173 onAppstart -
2009-08-07 09:54:46 960 (s)2641173 on Connect -
This is just the main stuff of the code. I don't want to spam you ![]()
Thanks in advance for your help!
