When dealing with .swc and it doesn't seem willing to work no matter
what, then you may have an easy workaround using some AS3 + mxmlc.
Create a simple AS3 file, embed your haxe swf inside it, link the swf to
it and make the desired APi object accessible from it. Then load the
haxe swf with Loader.loadBinary(), add it to the display list and call
its giveObjToHaxe(the_api_obj) function. From your haxe static main, do:
(flash.Lib.current is the flash Boot object here). This is a bit rough
description, but you could get the idea.
2010.09.12. 16:16 keltezéssel, slenkar írta:
> do you mean -swf-lib ?
> I think it worked but now its saying
> [hidden email]:1: character 0 : Class not
> found : Error
> Build halted with errors (haxe.exe).
> I tried this code: