Code: Select all
<Var name="myRoomVar" type="n" persistent="true" private="false">0</Var>
First, I login with the "roomVarsExample.swf" to check the RoomVariables in realtime. I see "myRoomVar = 0", as expected.
Then I login with my swf, which contains code in the onJoinRoom()-event that changes the RoomVariable's value.
Code: Select all
var rVars:Array = [];
rVars.push( {name:"myRoomVar", val:1, persistent:true} );
smartFox.setRoomVariables(rVars);
I see "myRoomVar = 1", as expected.
Then I logout, and suddenly "myRoomVar" doesnt exist anymore (or atleast isnt shown in the Variable List of "roomVarsExample.swf".
Strange, I thought the existence of those variables should be independent of wether the user who created them were logged in or not?