This content has been marked as final. Show 3 replies
I'm not expert in serialization, I've been playing with it myself but not enough to be able to produce a totally expert opinion on this, still I think that when you serialize an object you don't serialize it's CLASS just it's data, so it's totally natural to get just an object back and not a class.
I would try adding a conversion function to your code to see if ti works (It does on simpler classes at least):
var bmt:Bitmap = Bitmap(obj);
I wrote a blog post yesterday on how to use describeType to serialize a simple class object to an xml string and later reparse that xml string to rebuild the object.
The code is kind of long so you may just want to download the Flex project.
Please let me know if you have any questions. I'd love your input!