FlashDevelop / OpenFL: how to set a default goal for neko

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() { //used in standalone swf project
        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

+1
source share
1 answer

There are actually 2 questions.

, Sys.print , ( flash?), , , , , , .

flashdevelop, openfl, :

drop down menu in flashdevelop

+1

All Articles