Help with remote sharedObject (FCS)

  • ScienceOfSpock
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1893
  • Loc: Las Vegas

Post 3+ Months Ago

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:
Code: [ Select ]
    server_so = SharedObject.get("adminRecorder", false);
    server_so.setProperty("testVal", "testing");
  1.     server_so = SharedObject.get("adminRecorder", false);
  2.     server_so.setProperty("testVal", "testing");

then in my client (both presenter and admin), I have:
Code: [ Select ]
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);
  1. myConnection_nc = new NetConnection();
  2. myConnection_nc.connect("rtmp:/pres_beta");
  3.     so = SharedObject.getRemote("adminRecorder", "rtmp:/pres_beta", false);
  4.     trace("so: "+so);
  5.     if(so.connect(myConnection_nc)){
  6.         trace("YAAAY! Connected to myConnection_nc!");
  7.     }
  8. junk = so.data.actor_info;
  9. 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?
  • ScienceOfSpock
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1893
  • Loc: Las Vegas

Post 3+ Months Ago

not exactly sure on the rules about this, but I'm offering $100 paypal for anyone who can solve my problem. I'm way behind deadline and this is just growing more and more frustrating for me.
If you can help, please contact me directly at ICQ 1194580 or email me at hitek[@T]cox.net

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.