开发者

Understanding remote shared objects in Flex and ActionScript

I have 2 questions about remote shared objects in Flex/ActionScript3:

1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect, but please let me know

2) Is the entire object state send each time the SYNC event is fired, or is it only the changes to the object state? I bel开发者_StackOverflow中文版ieve it is only the changes.


1) Yes. If you are connected to server you will receive sync event no matter if you have listener for it

2) Only changes. There is changeList property in SyncEvent that has an array of object that are changed.


  1. Every time you make a connection with FMS onSync Event is going to be called..

  2. syncEvent is only called when you make any change in your shared object array..and never else.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜