If you are serializing custom classes to disk in your AIR application, what will you do when you want to add an additional field to a class? The readExternal function would not properly read this new field if it was present. What if you wanted to reorder the serialization order of the class? Then the readExternal class would throw a runtime error due to your code trying to read the wrong data type.
The solution: MigrAIRable classes:
Add the migrAIRable SWC to your project Have your IExternalizable class extend MigrAIRable Set the version string in the constructor of your class Add namespace functions to parse according to the version string that was read
It's that easy!
Commercial Use
Modify
Distribute
Place Warranty
Sub-License
Private Use
Use Patent Claims
Hold Liable
Use Trademarks
Include Copyright
State Changes
Include License
Include Notice
These details are provided for information only. No information here is legal advice and should not be used as such.