Code: Select all
this.addEventHandler(SFSEventType.USER_VARIABLES_UPDATE, UserVariablesUpdate.class);
Normally, if a user in that room changes one of his variables it should fire this event right? Well its not
I am changing a variable the following way:
Code: Select all
var userVars:Array = new Array();
userVars.push(new SFSUserVariable("loaded", true));
sfs.send(new SetUserVariablesRequest(userVars));
The variable is indeed changed when I check in the admin panel.
Here is the class that would receive the Event:
Code: Select all
public class UserVariablesUpdate extends BaseServerEventHandler implements
IServerEventHandler {
GameMaster main;
@Override
public void handleServerEvent(ISFSEvent event) throws SFSException {
trace("USER VARIABLE UPDATE");
main = (GameMaster) getParentExtension();
main.CheckUserStatuses();
}
}
The room also has the permission set to send these updates.
Here is a screenshot:
http://screencast.com/t/ze8eU1j3d
http://screencast.com/t/m0QpYciUFO
Is there anything I am missing?