Hi Lapo,
Thank you for answering.
My problem is, I can read my variables but I cannot read other users' variables(they exist in same room with me) even though they have those variables which I try to get.
Let me try to explain what I'm doing;
1. I'm setting a variable to my user (and all user connected to zone)
2. User joins the room
3. Client reads user list from room as below;
Code: Select all
for each(var usr in sfs.lastJoinedRoom.userList){
usr.getVariable("blablabla")
}
4. Here is the problem, if user is me (if usr.isMe==true) then I'am able to read variables, If it's not me, I cannot read.
Another situation;
1. My code looks like on SFSEvent.USER_ENTER_ROOM;
Code: Select all
private function onUserEnterRoom(evt:SFSEvent):void
{
evt.params.user.getVariable.....
}
This code also cannot read variables from entered user just like above.
As you said, I already tried to check if variable really exists on server via Zone Monitor, yes they are exists but the scenario is like I said.
I don't know if I'm doing something wrong (obviously I do but I don't know what it is) because you say that I should be able to read variables of other users.
I hope I could explain my problem.
Thanks