onUserEnterRoom()
Availability:
Flash Player 7, 8
SmartFoxServer Lite / Basic / Pro
Usage:
smartFox.onUserEnterRoom(roomId:Number, userObj:User)
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 |
Returns:
nothing
Example:
smartFox.onUserEnterRoom = function(roomId:Number, userObj:Object) { trace("Welcome " + userObj.getName()) }
See also: