onObjectReceived()

Availability:

SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.onObjectReceived(obj <propList>, sender <propList>)

Description:

The event is fired when a propertylist object is received. (propertylist can be sent with the sendObject() method)

Parameters:

obj   The propertylist object
sender   The user propertylist representing the client who sent the data

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

Returns:

nothing

Example:

on onObjectReceived me, obj, sender
	// Assuming another client has sent his X and Y positions
	// in two properties called px, py
	put("Got data from: " & sender.name)
	put("X = " & obj.px & ", Y = " & obj.py)
end

See also: