about onUserVariablesUpdate

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Post Reply
jessica_75
Posts: 2
Joined: 09 May 2011, 17:52

about onUserVariablesUpdate

Post by jessica_75 »

Hi everybody !

I'm sorry for my langage because I'm french so I hope you could understand my request:

I noticed when I use the following code:

Code: Select all

smartFox.addEventListener(SFSEvent.onUserVariablesUpdate, updateVar);


the function updatevar runs only when other-users's variables are update. But I would like to have the same thing for all users (include my user).

Is it possible to do that ?

If you could answer, I will so happy.

Thank you very much by advance.

Kiss.

Jess'
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Are you using SmartFoxServer 1 or SmartFoxServer 2X? Because this forum is about 2X, but the syntax you use seems to be the old one.
In SFS2X the userVariableUpdate event is received by the variable's owner too, but not in SFS 1. The rationale behind this was that you know when you set your own variables.
Paolo Bax
The SmartFoxServer Team
jessica_75
Posts: 2
Joined: 09 May 2011, 17:52

Post by jessica_75 »

Ok, thank you very much mister !
bax wrote:Are you using SmartFoxServer 1 or SmartFoxServer 2X? Because this forum is about 2X, but the syntax you use seems to be the old one.
In SFS2X the userVariableUpdate event is received by the variable's owner too, but not in SFS 1. The rationale behind this was that you know when you set your own variables.
Post Reply