I have a remote flex SharedObject and Im trying (using Red5) to send to all clients a message and an object with some user / sender data.
The problem is: The values displayed in clients are the ones stored on them, not the value in my SO.
Heres some code:
protected function btSend_clickHandler(event:MouseEvent):void
{
soChat.setProperty("msg",tiMessage.text);
soChat.setProperty("userVO",modtrackModel.userVO);
tiMessage.text = "";
}
private function syncListener(event:SyncEvent):void
{
for(var i:Object in event.changeList) {
var changeObj:Object = event.changeList[i];
switch(changeObj.name) {
case "msg":
newMessage(event.target.data["userVO"].userName);
break;
}
}
}
public function newMessage( msg:String):void
{
Alert.show(msg);
}
So the problem is, If im Logged as Ricardo in Browser A and Rodrigo in Browser B the Alert shows Ricardo in Browser A and Rodrigo in Browser B... it shouldn't, right? It should show the last value set in my SO, right?
Ty for any help and sry for my bad english.