Le 25/03/2011 21:19, Nemea Lion a écrit :
> Hi guys
> I just downloaded the aswing2 beta to try it out, and when trying to
> generate the hx classes I got:
> haxe -swf out.swf -swf-lib library.swf --gen-hx-classes --no-output
> [hidden email]:1: character 0 : Cannot
> extend basic class.
haXe does not allow extending Array, so you'll have to ask aswing users
to adapt their code.
Another possibility is to define your own
org/aswing/plaf/ArrayUIResource.hx class that will override the one
defined in library.swf
Thats what I did, I ported the offending as3 file to haxe manually, with :@bind and used that one to get the other hx classes, it seems to work great so far. Great work with the compiler, even if it can't get the conversion right away, there
is always a workaround.