RoomVariable class

Availability:

SmartFoxServer PRO 1.2.1

Description:

A RoomVariable object represents a value saved on the server-side for a specific Room.

Public Methods:

getOwner()   Return a User object. The "owner" of the variable
getValue()   Return the variable value
isPersistent()   Return a boolean. True if the variable is persistent
isPrivate()   Return a boolean. True if the variable is private


Example:

// Get the "strength" variable from an user object
var userVar = userObj.getVariable("strength")

// Show its variable
trace("Your strength = " + userVar.getValue())