sendObject not recieving?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

fwe
Posts: 7
Joined: 25 Nov 2005, 23:29

sendObject not recieving?

Postby fwe » 26 Nov 2005, 18:29

Hello again,

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
Last edited by fwe on 26 Nov 2005, 20:05, edited 1 time in total.
fwe
Posts: 7
Joined: 25 Nov 2005, 23:29

Postby fwe » 26 Nov 2005, 20:04

Nevermind! I just read that you don't recieve the objects you sent.

Also removing the fla so no one steals it

:D
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 27 Nov 2005, 05:19

I just read that you don't recieve the objects you sent.


Yup! :)
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 91 guests