Code: Select all
var smartfox:SmartFoxClient = new SmartFoxClient();
smartfox.connect("localhost",9339);
smartfox.login("simpleChat",null,null);
smartfox.joinRoom(1);
//this is called in later after im sure the room has been joined and all that
smartfox.sendObject({x:10,y:20})
smartfox.addEventListener(SFSEvent.onObjectReceived,handleObjectReceived);
function handleObjectReceived(event:SFSEvent):void{
trace("RECIEVED AND OBJ!");
}
Doesn't seem to work... I can send public messages and everything fine, but sending objs is not working at all.