Thank you for replying. I figured out the problem, it was a two part:
- Correctly check if there's data already on the Flxsave slot (that was pretty dumb on my part, i skipped that).
- You can't push a class into the save file like this:
That gave me a trace overflow issue in flashdevelop, so i figured:
_save.data.MyVar.push( Type.getClassName(Type.getClass(MyClass)) );
Works fine because it stores it as a string. When loading you can get you class by doing Type.resolveClass().
That resolves the issue, hopefully it helps someone in the future. It wasnt clearly documented in the haxeflixel docs.
Thanks again for replying.