Code: Select all
smartFox.onExtensionResponse = function(resObj:Object, type:String)
{
_global.key = resObj.serversimulationid
trace("ServerSimulationId from Smartfox Server = " + _global.key)
}
Code: Select all
public void handleRequest(String cmd, ActionscriptObject ao, User u, int fromRoom)
{
if (cmd != null && cmd.equals("GETSERVERSIMULATIONID"))
{
String sServerSimulationId = Util.getGUID();
System.out.println(" sending new server simulation id to client=" + sServerSimulationId);
// All users except "who"
LinkedList ll = new LinkedList();
ll.add(u.getChannel());
ActionscriptObject resObj = new ActionscriptObject();
resObj.put("serversimulationid", sServerSimulationId);
sendResponse(resObj, fromRoom, u, ll);
return;
}
}\Any suggestions...