Action script to string serialization and de-serialization


/ Published in: ActionScript 3
Save to your folder(s)

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).

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.