ActionScript – SharedObject;

June 25th, 2008

There are many possible uses of shared-objects. For example to keep track of a shopping cart (store a name and selections and values or clear all values); track a name and high score; to store user’s preferences; to check whether a user is a new visitor; or a remote shared-object; which allows you to save to and retrieve data from a Flash COM (RMTP) server.

I will post about two remote shared-object uses (from livedocs.adobe.com):

* Store and share data on Flash Media Server. A shared object can store data on the server for other clients to retrieve. For example, call SharedObject.getRemote() to create a remote shared object, such as a phone list, that is persistent on the server. Whenever a client makes changes to the shared object, the revised data is available to all clients currently connected to the object or who later connect to it. If the object is also persistent locally, and a client changes data while not connected to the server, the data is copied to the remote shared object the next time the client connects to the object.

* Share data in real time. A shared object can share data among multiple clients in real time. For example, you can open a remote shared object that stores a list of users connected to a chat room that is visible to all clients connected to the object. When a user enters or leaves the chat room, the object is updated and all clients that are connected to the object see the revised list of chat room users.

reference: http://flash-communications.net/technotes/sharedObjectEditor/index.html

http://flash-communications.net/technotes/sharedObjectEditor/editor.html

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/SharedObject.html

http://www.kirupa.com/developer/actionscript/shared_objects.htm

Entry Filed under: AS2, AS3, All, Flash, actionScript

Leave a Comment

You must be logged in to post a comment.

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

June 2008
M T W T F S S
« May   Jul »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Most Recent Posts