Simon Washington
Simon Washington

Reputation: 31

Using Shared Objects

I am rather new to as3. My question is...how do you update a server using a remote shared object?

Example, your in a chat room the application stores a list of users connected and is visible to all connected clients. When a user enters or leaves the chat application the clients are updated instantly. Or, your in private chat room and your exchanging messages in real-time etc

Thank You

Upvotes: 0

Views: 208

Answers (1)

Joshua Honig
Joshua Honig

Reputation: 13225

You need Flash Media Server to use remote shared objects. (See the documentation on SharedObject.)

If you don't have a server (computer) running Flash Media Server (software), you can take a different approach and use Real Time Media Flow Protocol (RTMFP) to establish peer-to-peer connections. See for example the following tutorial for a rundown on how to use the classes in the flash.net package to create a P2P chat client: Create a Chat App Using Flash and Peer to Peer. Also see the documentation for the NetGroup class.

Upvotes: 1

Related Questions