You can compile your AS3 code into a separate swf
or swc
and then use -swf-lib
to use it from Haxe.
Running Flash (AS3) code in Haxe
-
23-06-2023 - |
Question
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?
La solution
Autres conseils
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).