i create some users variables from the client using as3..from the admin panel i can see these variables but cannot access them from flash..
for example one var called creator and it is string
this line room.containsVariable("creator") answer false...why?
i can't access these variables outside from the ROOM_VARIABLES_UPDATE event?
cannot access room variables
Hi. Do you try to access these variables only after the ROOM_VARIABLES_UPDATE event? Also can you access these variables inside this event?
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Well, if you're trying to get a variable from a room that isn't the one you're joined into, then yes, you need to set the variable as global, otherwise it wont be visible from players outside that room (i think they need to be at least in the same room group as that room to be able to get the variables).
Sorry, from your first post i didn't realize you were accessing those vars from an external room...
Sorry, from your first post i didn't realize you were accessing those vars from an external room...
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
no no..i want to access the variables into the same room.. but i can't...
and i find this solution (with global variable) but i know that isn't right.. and i can't set global variable from the client ..so i want to solve this problem...
the mystery is that the variable is created because i find it to the admin panel.. i try to fire the ROOM_VARIABLES_UPDATE event and try after that..
and i find this solution (with global variable) but i know that isn't right.. and i can't set global variable from the client ..so i want to solve this problem...
the mystery is that the variable is created because i find it to the admin panel.. i try to fire the ROOM_VARIABLES_UPDATE event and try after that..