onUserEnterRoom()
Availability:
Flash Player 6.0
SmartFoxServer Lite / Basic / Pro
Usage:
smartFox.onUserEnterRoom(roomId, userObj)
Description:
The event is fired when a new user joins the current room.
Parameters:
roomId | the id of the room where the event was fired | |
userObj | The object representing the new user |
Check the User Class for more info on the objects returned.
Returns:
nothing
Example:
smartFox.onUserEnterRoom = function(roomId, userObj) { trace("Welcome " + userObj.getName()) }
See also: