Hi everyone,
I'm new to Haxe and have been racking my brain trying to figure out why I can't get a simple TextField to display.
I'm running Windows 7 and using IntelliJ for an IDE.
Below is my code:
package ;
import flash.display.Sprite;
class Main extends Sprite
{
public function new()
{
super();
var output = new flash.text.TextField();
output.defaultTextFormat = new flash.text.TextFormat("Arial", 24, 0x006600);
output.text = "\n\nHello, World!";
output.height = output.width = 200;
this.addChild(output);
}
}
This code works fine when targeting Flash, but as soon as I target Windows or Neko, the output is completely blank. There are no errors, and the TextField can be found by printing out children along with all of its properties, but for the life of me I can't get it to display. I can draw shapes and images, but not text.
What are my options?