Copy link to clipboard
Copied
Hello I have only been learning ActionScript for a few weeks coming from Java and Javascript. I need some help with code.I have a remote shared object for my Flash Media Server Project. I like to store a list of all connected clients to a chat room that is visible to multiple users. When a clients connects, or disconnects from the application I want the list to be revised and all clients connected will see that changes in real-time. I am unsure the best way to approach this. I was thinking of using a changeList property to create an array that describes the change properties of a persistent shared object. Is that feasible to do, or is there a easier alternative? Finally, I be grateful if you could provide me a small sample of code to do this then I can take it from there. Thanks.
Copy link to clipboard
Copied
is everyone connected to your server or are you using peer-to-peer?
if the former, the rso sends a sync event whenever any client uses setProperty to update the rso. that sync event is sent to every connected client.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now