activeRoomId

Availability:

Flash Player 6.0
SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.activeRoomId

Description:

The property stores the id of the last room the user has entered.
In most multiuser applications users can join one room at a time: in this case the property value represents the id of the current room.
If you're allowing the clients join more than one room at the same time you will have to track the various id(s) in an array for example and this
property should be ignored.

Parameters:

none      

Returns:

Nothing.

Example:

 var room = smartFox.getRoom(smartFox.activeRoomId)
 trace("CurrentRoom is : " + room.getName())

See also:

getRoom()