Home > Flash, Flex > Shared objects

Shared objects

Shared objects offer real-time data sharing between multiple client SWF files and objects that are persistent on the local computer or remote server. I am much more interested in Remote Shared Object. To use Remote Shared Objects, we need a server, such as Flash Media Server 2 (FMS).

Some of the common uses of shared objects are :

1) Maintaining local persistence.

2) Storing and sharing data on a server

3) Sharing data in real time

Maintaining local persistence:

We use Shared Object (SO) where we need to store an value in SO and whenever we access the value, we will get last stored value. And to remove the value from SO we need to set it null. Mostly this kind of technique is used in small application where FMS is not required. 

Storing and sharing data on a server:

We use SO in such a way that we will get information from Server and when internet connection is lost the SO consist last data.

Sharing data in real time:

This is a most important use of SO.

Using SO, we can share data among multiple clients at run time like a list of users connected to Meeting Room, which could be visible to all the users who are connected to the object. And all the updates at Server side will reflect to all users connected to the object.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: