Greetings group,
I feel shameful to ask that a stupid question when all of you discuss so many interesting topics, but here's my problem.
I'd like to use the haxe.Json class.
For this it seems I need to compile for Flash Player 11, at least. Otherwise JSON is not found on execution time and I get an exception.
So I compiled my swf lib for Flash Player 11.2 (previously it was for Flash 9), and changed my compilation line to:
-main Preloader.hx
-swf-version 13.2
-swf preloader.swf
--next
-main Client.hx
-swf-version 13.2
-swf-lib inventory_panel.swf
-swf client.swf
However, I'm getting this error:
Compiling Preloader...
**File "genswf.ml", line 554, characters 8-14: Assertion failed**
If I remove the -swf-version from the part before the "next", it compiles the first part. But then the same assertion fails on the next one (client.swf).
I tried to use -swf-version 13, -swf-version 13.1 (compiling my lib inventory_panel.swf for Flash 11.1), but same assertion error occurs. I tried to compile with -swf-version 11.1, then it compiles but as expected the Flash Player doesn't have the JSON class then and it fails on execution.
What am I doing wrong?