/ Published in: ActionScript 3
This snippet shows how to serialize action script object to strings, the serialization method is AMF based, note also that each object must meet three basic rules in order to be serialized properly:
¨1. The constructor must take no arguments
2. Fields must be public or they won’t be saved
3. You must register it with a class alias by calling flash.net.registerClassAlias(aliasString, class).¨
(this is based upon http://www.partlyhuman.com/blog/roger/technique-storing-arbitrary-objects-in-html-links).
¨1. The constructor must take no arguments
2. Fields must be public or they won’t be saved
3. You must register it with a class alias by calling flash.net.registerClassAlias(aliasString, class).¨
(this is based upon http://www.partlyhuman.com/blog/roger/technique-storing-arbitrary-objects-in-html-links).