aduros / flambe

Rapidly cook up games for HTML5, Flash, Android, and iOS.
https://github.com/aduros/flambe/wiki
MIT License
745 stars 119 forks source link

[Bug] ArrayAcces error when build with -dce std #143

Open Jona85 opened 11 years ago

Jona85 commented 11 years ago

When I change the -dce from 'full' to 'std' or 'no' in the build script(flambe.py). The Sprite Class in Flambe breaks.

I get the following error in FlashDevelop: [Fault] exception, information=VerifyError: Error #1014: Class ArrayAccess could not be found.

And in the FlashDebugplayer I got this error message: VerifyError: Error #1014: Class ArrayAccess could not be found. at flambe.display::Sprite()[C:\jonathan\experiments\haxe\flambeTest\SequencePort\source\libs\flambe\src\flambe\display\Sprite.hx:107] at flambe.display::FillSprite()[C:\jonathan\experiments\haxe\flambeTest\SequencePort\source\libs\flambe\src\flambe\display\FillSprite.hx:21] at Main$/main()[C:\jonathan\experiments\haxe\flambeTest\SequencePort\source\classes\Main.hx:43] at boot_16b7/init()[C:\jonathan\experiments\haxe\flambeTest\SequencePort\build\?:1] at flash::Boot/start()[C:\Motion-Twin\Haxe\3.0\std\flash\Boot.hx:70] at boot_16b7()[C:\Motion-Twin\Haxe\3.0\std\flash\Boot.hx:38]

I'm not sure why it breaks and haven't found a solution yet....

aduros commented 11 years ago

Confirmed. Smells like a Haxe compiler bug.

As a workaround, are you able to use @:keep on the classes you want DCE to ignore?