11-09-05 12:45 PM
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
[ Post a follow-up to this message ]
|