Macromedia Flash Server - [FlashComm] sharedObjects Server-Client donīt sync

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > November 2005 > [FlashComm] sharedObjects Server-Client donīt sync





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [FlashComm] sharedObjects Server-Client donīt sync
Ruben

2005-11-09, 7:45 am


I create a sharedObject on the server side:

application.onAppStart =3D function() {
this.userOnLine_so =3D SharedObject.get("public/userOnLine");
}
application.onConnect =3D function(client){
...
this.acceptConnection(client);
var users =3D this.clients.length;
this.userOnLine_so.setProperty ("users", users);
...
}



and on the client side:

nc =3D new NetConnection();
nc.onStatus =3D function(info){
if(info.code =3D=3D "NetConnection.Connect.Success"){
var so:SharedObject =3D SharedObject.getRemote(
"public/userOnLine",
nc.uri, false
);
so.onSync =3D function (list){
trace("change on server");
}
so.connect(this);
}



On first time the trace works, but when any other client logs, the
server side userOnLine_so change, but I don=B4t receive any sync on
cliente side so.
Any body can helpme?

Ruben =D3
=20



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com