I am trying to write cross-language code using Haxe / OpenFL and compile it using FalshDevelop. But I get an error as soon as I use the base function Sys.print. Minimal example:
package;
import flash.display.Sprite;
class Graphic extends Sprite {
public function new () {
super ();
}
static function main() {
Sys.print("Hi");
}
}
Turns out the default compilation command for FlashDevelop looks something like this:
haxelib run openfl build project.xml flash
which gives an error on Sys.print:
Graphic.hx:xx: characters 2-11 : Accessing this field requires a system platform
(php,neko,cpp,etc.)
I assume it is Sys.printnot available in the flash target, or flash is not a system platform(weird). I was wondering if there is a way around this and configure FlashDevelop so that the compilation command:
haxelib run openfl build project.xml neko
thank
source
share