Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Using a SharedObject, you can store any native type in ActionScript 3.0 persistently. You can also store your own custom classes, with a little bit of extra work. The extra work has to do with the process of encoding objects into bytes so that they can be written to the local shared object file. Encoding objects into a flat binary representation is called serialization, and restoring them into their original form as runtime objects is called deserialization. You've already seen that Flash Player uses AMF to serialize and deserialize objects for storage in shared objects.
Certain kinds of classes can be serialized and deserialized in AMF with no problem. You can store and retrieve instances of a class in a SharedObject without additional code as long as: