Skip to main content
March 31, 2010
Question

How to write FMS3 remote shared object sequentially when multiple users are connected.

  • March 31, 2010
  • 2 replies
  • 1255 views

Hi All,

I am using FMS3 and Flash CS3 (actionscript2) in a Flash based whiteboard application. Multiple users can join this whiteboard. I want to save chat text and drawing in same sequence as live time. I am using persistant remote shared object to save these data. But when i try to replay these data  its not showing in same squence as live .  I am generating unique slot for chat and drawing but still same error occuring . Does some one  help me to sort out this problem ?

thanks,

With Regards

Ganesh

    This topic has been closed for replies.

    2 replies

    September 20, 2010

    Hello All,

    Did anyone find a solution for this problem. I am facing the same problem with persistent shared objects. Also, I don't think it is synchronization problem, meaning two users are trying to update the shared object at the same time. Even if the users update the shared object at different time, when received live it will show the data in the order as it is received. But when the user logs out and login back it will receive the data in the disturbed sequence. Please help if someone has faced this problem,and solved it. This is urgent.

    Thanks,

    Pooja

    September 20, 2010

    Keep in mind that a shared object is an object, not an array, so you can't guarantee an order of properties based on when those properties were added to the object.

    If you need to keep sequence, I recommend including an index value in each object property, and then program your application to display those properties in the desired order.

    Depending on your use case, it may make more sense to allow the server application to manage the shared object, and use netconnection calls to send requests to the server when a property is to be added to or removed from the shared object.

    September 21, 2010

    Thanks Jay  for the reply. I am updating the shared object through the server application only. I was just wondering if there was some provision to maintain that sequence in shared objects. But as you suggested I will handle the order of the data on client side using indexes.

    March 31, 2010


    Hi,

    Can you please provide me some more details as to how you are trying to do it, I mean your logic, i.e, the way you are trying to use shared object for your purpose. It would be good if you can provide some code portions so that I can nail down the issue you are facing

    Thanks,

    Abhishek

    March 31, 2010

    Hi Abhishek,

    Thanks for your email.

    Actually i want to show whiteboard chat and drawing replay using

    remote shared objects. So i am using persistant remote shared objects.

    I am adding values at client side and flushing that remote object at

    server side(FMS3). But when i read data from save shared object its

    not showing in sequence.

    plz find attached text file for some code portion at client and server side.

    Let me know your suggestions.

    thanks,

    Ganesh

    Quoting AbhishekSinha <forums@adobe.com>:

    >

    Hi,

     

    Can you please provide me some more details as to how you are trying

    to do it, I mean your logic, i.e, the way you are trying to use

    shared object for your purpose. It would be good if you can provide

    some code portions so that I can nail down the issue you are facing

     

    Thanks,

    Abhishek

    >

    March 31, 2010

    Hi,

    I did not find any attached file. Actually the mail that you send goes to forum and notification comes to all who have subscribed. I believe you replied to the mail with attached file.

    Coming back to your problem I feel you may be running into synchronization issue, i.e, certain clients may be updating the sharedobject at same time resulting in race condition and thus the result may not be seen in order. This is my assumption.

    I can comment more only on seeing some code portion, you may either paste it here or send a private message to me with the code.

    Thanks,

    Abhishek