actionscript 3 - Can you recreate a class with an instance of that class? -
i have database component i'm trying make general possible. possible accomplish this:
- take in custom class don't have definition
- recreate class locally foreign instance
basically can't include definition of objects stored in database want database process raw data of whatever class passed in, store it, , able provide again object.
ideally cast it's custom class when object gets database.
it sounds asking serialization.
serialzation in as3 possible through few different methods. recommend refer this article describes method quite clearly.
to elaborate, once serialize object, send server , pair key in database. can serialize original object downloading server again.
Comments
Post a Comment