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:

  1. take in custom class don't have definition
  2. 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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -