Skip to main content
Known Participant
February 16, 2012
Question

SharedBall (client side setProperty) works, but server-side can't sense/make SO changes

  • February 16, 2012
  • 1 reply
  • 599 views

The shared ball example works, if you are just writing/reading an SO from the client.

But can anyone give the code necessary to write/read to an SO on the side-side so that the client sees the change, and vice-versa?

FMS-side can see its own changes. Ie, doing getProperty after setProperty, I'll see the property changed, like this:

updateRoomsSo = function()

{

var theSO = SharedObject.get("all", true);

theSO.onSync = function(list){...}

theSO.onStatus = function(infoObj){...}

theSO.setProperty("a", "1);

var r = theSO.getProperty("a");

trace("r="+r); // will show the 1

// However, the client will not see this update, and the client's update will not be caught in onSync or onStatus functions I have defined there.

But, if I use a netconnection to this app, as in:

var theSO = SharedObject.get("all", true, my_NC_toThisApp);

// Now the getProperty will not see the "1" or anything.

// Am I just not connecting to "this" app correctly, most likely? In that case, you can see my other post containing the code I'm using to try to make that connection.

// Here: http://forums.adobe.com/thread/963515?tstart=0

// Am I missing something else?

This topic has been closed for replies.

1 reply

Known Participant
February 16, 2012

Is it just not possible to properly get/set properties on SO's residing on *this* application (itself)?

Must I therefor use another application for use as a proxied SO manager, where my main application, along with clients, would get/set properties on the SOs?

Known Participant
February 16, 2012

Now I'm trying to connect to a "master" server for the SO's

But I get this:

so_allUsers.onStatus: error; SharedObject.NoAccess.

Google search on "SharedObject.NoAccess" provided 0 results.

What's this all about? Some file-system permissions for the master's app on the FMS server? How to fix this?