Page 1 of 1

Sending Object

Posted: 16 Apr 2010, 17:37
by ParkerJ

Code: Select all

[Sending]: <msg t='sys'><body action='asObj' r='4'><![CDATA[<dataObj><var n='skill' t='s'>1</var></dataObj>]]></body></msg>
It sends the message but on the reciving code;

There is no output that says

[Recieved]:

I have checked this code;

Code: Select all

_parent.smartfox.onObjectReceived = function(obj, user){
      	trace(obj + " <= OBJECT  " + user + "<= Commited By!");
}
The _parent. is because the code is within a movieclip.

But still nothing.

Posted: 17 Apr 2010, 16:47
by Lapo
An object is sent to all the other users in the Room except the sender itself. You should test with two clients at least.
Also you could take a look at the sendObjectToGroup() method if you need to specify exactly which clients should receive the data.

Cheers

So It sends

Posted: 17 Apr 2010, 21:40
by ParkerJ
So its send's to others not self.

~Parker