This time I got in a game server and went to send an object, and it seems like it sends, but it doesn't receive.
Code: Select all
[Sending]: <msg t='sys'><body action='asObj' r='52'><![CDATA[<dataObj><var n='color' t='s'>red</var><var n='py' t='n'>200</var><var n='px' t='n'>100</var></dataObj>]]></body></msg>
[Sending]: <msg t='sys'><body action='asObj' r='52'><![CDATA[<dataObj><var n='color' t='s'>red</var><var n='py' t='n'>200</var><var n='px' t='n'>100</var></dataObj>]]></body></msg>
The code to handle it is
Code: Select all
smartfox.onObjectReceived = function(obj, user) {
trace(getTimer()-obj.tim);
};
smartfox.onObjectReceived = function(obj, user) {
trace(getTimer()-obj.tim);
};
onMouseDown = function () {
newObj = {tim:getTimer()};
smartfox.sendObject(newObj);
};
It does not recieve!
Here's the fla if you need to take a closer look at it