Tuesday, 1 April 2014

flashdevelop + haxe + OpenFL category not found

I'm perplexing out Haxe programming and OpenFL library with Flashdevelop
as a IDE. we finished a package for my tellurian diversion classes and
afterwards attempted to import it, it only says a category I'm importing
doesn't exist. Shouldn't it notice that we have a category in a source
record underneath a Source directory?Here is a Source/Main.hx
file:package;import flash.display.Sprite;import
flash.display.BitmapData;import flash.display.Bitmap;import
flash.events.MouseEvent;import flash.text.TextField;import
flash.text.TextFormat;import flash.text.Font;import openfl.Assets;import
globals.Room;class Main extends Sprite { open duty new () {
super (); } }And here is a Source/Globals.hx file:package
globals;public category Room { open duty new() { }}

No comments:

Post a Comment