6/28/2011 2:03:13 AM
Title:
shared object
Hi All,
What is shared object, and what are the uses of shared object.
With Regards,
krishna
6/28/2011 5:33:10 AM
Shared objects are like browser cookies however
They do not expire by default.
By default, they are limited to a size of 100 KB each.
They can store simple data types (such as String, Array, and Date).
They are stored in a location specified by the application (within the user's home directory).
They are never transmitted between the client and server.
Use getLocal() to create a shared object. (SharedObject.getLocal("myTasks"); )
Use flush() to write the shared object to the client file. (sharedObj.flush())
Use clear() to destroy a shared object (sharedObj.clear())
Ref and Example : http://learn.adobe.com/wiki/display/Flex/Shared+Objects
6/28/2011 9:07:42 AM
well done senling that was a good and detailed explanation of local shared object.
However there are also remote shared objects which are used to store data on Media servers like (red5, FMS etc). The data stored in remote shared objects is shared among all the users who access that same shared object. Remote shared objects have vast applications to create real time live applications.