sendPrivateMessage()

Availability:

Flash Player 6.0
SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.sendPrivateMessage(msg, userId)

Description:

Sends a private chat message to a user.

Parameters:

msg   A string with the text of the message
userId   The user Id of the client that will receive the message

Returns:

Fires the onPrivateMessage event

Example:

smartFox.sendPrivateMessage("Hey there!", 22)

See also:

onPrivateMessage, sendPublicMessage()