Hey yall, I have a problem using remote shared objects with FCS 1.5.
I'm creating the sharedObject in main.asc for the application, and it's showing up in the application monitoring admin panel. Then when I load a client, it connects to the server, and *supposedly* connects to the SO, but I cannot access any properties or use any functions.
For reference, this is a presenter/audience application, and all the other functions work; the video streams, questions and answers, etc. What I'm trying to do now is to create a special version of the audience client for an admin to control recording of the video stream for the presenter. I'm using the shared object to allow the admin client to call functions in the presenter client, but so far all I've managed to do is connect to the so, and I'm not even sure that is actually happening.
In main.asc I have:
server_so = SharedObject.get("adminRecorder", false);
server_so.setProperty("testVal", "testing");
- server_so = SharedObject.get("adminRecorder", false);
- server_so.setProperty("testVal", "testing");
then in my client (both presenter and admin), I have:
myConnection_nc = new NetConnection();
myConnection_nc.connect("rtmp:/pres_beta");
so = SharedObject.getRemote("adminRecorder", "rtmp:/pres_beta", false);
trace("so: "+so);
if(so.connect(myConnection_nc)){
trace("YAAAY! Connected to myConnection_nc!");
}
junk = so.data.actor_info;
trace("Junk:"+ junk);
- myConnection_nc = new NetConnection();
- myConnection_nc.connect("rtmp:/pres_beta");
- so = SharedObject.getRemote("adminRecorder", "rtmp:/pres_beta", false);
- trace("so: "+so);
- if(so.connect(myConnection_nc)){
- trace("YAAAY! Connected to myConnection_nc!");
- }
- junk = so.data.actor_info;
- trace("Junk:"+ junk);
but the trace for the client shows:
so: [object Object]
YAAAY! Connected to myConnection_nc!
Junk:undefined
Why would this be happening?