Frage

I am starting out developing in Haxe in combination with OpenFl, and am in a situation where I need to be able to run Flash/AS3 code in a Haxe program which is being compiled to Flash anyway.

I know I could use the command lime build -as3 as3source/ and then edit that code and manually insert the AS3 code I need to run, but I would prefer not doing that if I can.

Is there any way to do this?

War es hilfreich?

Lösung

You can compile your AS3 code into a separate swf or swc and then use -swf-lib to use it from Haxe.

Andere Tipps

You can always write a build script which enters the code in combination with the command for you, if you just want to avoid doing it manually, but I belive that´s the kind of answer you want.

I just find build script very usefull.

You may want to look at this article, some major options are described there (including tools for converting AS3 code to Haxe and technique with -swf-lib).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top