Skip to main content
Known Participant
October 30, 2012
Question

FMS SharedObjects to send messages??

  • October 30, 2012
  • 1 reply
  • 1166 views

Hi Everyone,  I am building a very small chat application in Flash Media Development Server 4.5. I have created all my User Interface stuff like buttons,  stage area etc.  Of course been a chat application users need to send messages back and forth to one another. I know they are lots of ways to send messages. . IYou can use the SharedObject or NetStream method just two examples

But in your rexperience what is your prefered method?  What are the advantages or disadvantages  of using these two methods or any other?

Thanks

This topic has been closed for replies.

1 reply

Petro_O__Bochan
Inspiring
October 30, 2012

Hello, if you plan to only send messages then SharedObject (so) is the way to go as they are lightning fast. NetStream (ns) is generally useful for recording real-time messages for later playback.

flashas3Author
Known Participant
October 30, 2012

Thank you Petro for your reply. So you recommend SharedObject is the best alternative for sending message between clients in a chatroom. Is it possible to use the NetGroup class? But  would you only  to send message to the whole group which i dont want.

Thanks again

Petro_O__Bochan
Inspiring
October 30, 2012

That all depends. SharedObject is the de facto mechanism for distributing data between fcs/fms/ams clients that has been around for ages. it’s easy to use and real fast although uses an rtmp protocol. (rtmfp is also supported). I haven’t done speed test to check SharedObject vs NetGroup messaging but the two differ in the way messages are distributed. First method being done via server as an origin node that receives an original messages and distributes it to peers while second can operate without a server – all among peers.