Question
how to share a ShareObject in client and server ?
hi,all
I have a question. It is too hard. Who can help me,? Your advise is really helpful.
My question is .. I create a video chat application and main.asc file in FMS2
It will be catched in (application.onDisconnect = function (clientObj) ) function when a client disconnect server , Send a message via shareobject in onDisconnect .
Other clients will update user list after other clients get the message.
But I find the ShareObject can not share in server and client.
Codes in FMS main.asc
application.onAppStart = function () {
. ....
sharedlist[0] = SharedObject.get("A_shared",true);
....
}
application.onDisconnect = function (clientObj){
sharedlist[0].data.textValue = "userlist";//
sharedlist[0].setDirty("textValue");
}
Codes in client :
text_so = SharedObject.getRemote("A_shared", client_nc.uri, true);
But I find shared object list in FMS_console. below
Name type connections
---------------------------------------
A_shared Stored 1
A_shared Temp 1
Server send message via shareobject, But client can not receive message , client can receiver message for other client send message .
how to share a ShareObject in client and server ??
I have a question. It is too hard. Who can help me,? Your advise is really helpful.
My question is .. I create a video chat application and main.asc file in FMS2
It will be catched in (application.onDisconnect = function (clientObj) ) function when a client disconnect server , Send a message via shareobject in onDisconnect .
Other clients will update user list after other clients get the message.
But I find the ShareObject can not share in server and client.
Codes in FMS main.asc
application.onAppStart = function () {
. ....
sharedlist[0] = SharedObject.get("A_shared",true);
....
}
application.onDisconnect = function (clientObj){
sharedlist[0].data.textValue = "userlist";//
sharedlist[0].setDirty("textValue");
}
Codes in client :
text_so = SharedObject.getRemote("A_shared", client_nc.uri, true);
But I find shared object list in FMS_console. below
Name type connections
---------------------------------------
A_shared Stored 1
A_shared Temp 1
Server send message via shareobject, But client can not receive message , client can receiver message for other client send message .
how to share a ShareObject in client and server ??
