To embed external .swf
or .swc
libraries, use the following compilation options:
--swf-lib <file>
Embeds the SWF library in the compiled SWF.--swf-lib-extern <file>
Adds the SWF library for type checking but doesn't include it in the compiled SWF.The standard compilation options also provide more Haxe sources to be added to the project:
-p <directory>
.-L <library-name>
.--macro include('mypackage')
which will include all the classes declared in the given package and subpackages.