Storing Instances of Classes in Flex Shared Objects

Posted by babyangel86 on Stack Overflow See other posts from Stack Overflow or by babyangel86
Published on 2010-05-26T18:56:01Z Indexed on 2010/05/26 20:41 UTC
Read the original article Hit count: 220

Filed under:
|
|
|

Is it possible to store instances of a class in a cookie or in shared objects.

Basically in my application I have an object "Diagram" that the user can create. If they hit save, I want to store the current instance as a cookie and allows them to reload it later.

Alternatively, I could see about getting them to store the saved version on the hard disk. But even then, all I want to save and retreive is my actionscript object.

Is this possible?

I've tried storing the object to SharedObject.data.diag, but when I try to retrieve the object from the cookie doing SharedObject.data.diag as Diag returns null.

© Stack Overflow or respective owner

Related posts about flex

Related posts about flash