1 Reply Latest reply on Feb 22, 2011 2:00 PM by drew_falkman

    Sync Event does not fire on shared object change

    NThaKa1

      Hi Experts,

      I am using Remote shared object in my project to implement RTMP. I have added a event listner with this RSO. So when I perform any change it is updated to object and available for other connected users.

      Initially I have created persistent shared object using following code

      so = SharedObject.getRemote("myObj", nc.uri, True);
      so.client = this;
      so.addEventListener( SyncEvent.SYNC, HandleEvent );
      so.connect(nc);

      This was working and calling "HandleEvent" function. Now when I change my code to make my remote shared object locally persistent, as following

       

      so = SharedObject.getRemote("myObj", nc.uri, "/");
      so.client = this;
      so.addEventListener( SyncEvent.SYNC, HandleEvent );
      so.connect(nc);

      Now "HandleEvent" function does not call when I set property of shared object.

       

       

      Please help me out to resolve this problem.