onObjectReceived()
Availability:
Flash Player 6.0
SmartFoxServer Lite / Basic / Pro
Usage:
smartFox.onObjectReceived(obj, sender)
Description:
The event is fired when an Actionscript object is received. (object can be sent with the sendObject() method)
Parameters:
obj | The actionscript object | |
sender | The user object representing the client who sent the data |
Returns:
nothing
Example:
smartFox.onObjectReceived = function(obj, sender) { // Assuming another client has sent his X and Y positions trace("Got data from: " + sender.getName()) trace("X = " + obj.px + ", Y = " + obj.py) }
See also: