onPrivateMessage()

Availability:

Flash Player 6.0
SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.onPrivateMessage(msg, sender)

Description:

The event is fired when a private chat message is received.

Parameters:

msg   the text message
sender   the user object representing the client who sent the message

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

Returns:

nothing

Example:

smartFox.onPrivateMessage = function(msg, sender)
{
	trace("A private message from " + sender.getName() + " has arrived: " + msg) 
}

See also: