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

Check the User Class for more info on the objects returned.

Returns:

nothing

Example:

smartFox.onUserEnterRoom = function(roomId:Number, userObj:Object)
{
	trace("Welcome " + userObj.getName())
}

See also: