Let's say i acquire the name of a class that i made as a String. How can i Instantiate the class with the name contained in that string? I I know it will be derived from a certain parent class, but the actual class will vary.
...
I have the following line in some of my haxe code:
removeChild(_screens[Helpers.indexOf(_screenNames, _activeScreen)]);
(_screens is a List, GameScreen is extending from Sprite, _activeScreen is a String, _screenNames is a List, and Helpers.indexOf does the obvious)
However, i get the error:
List<com.haxelib.GameScreen> should be Ar...
Recently I am learning haXe for flash, and I have few actionscript3 experience.
HaXe is really good language.
I notice there is a delete operation in as3, Is there some like delete in HaXe? Is the "delete" about gc? Is there any tips for haXe newbie about memory management, thanks?
...
Let me make this clear, I have this enum:
enum Token {
Number(v:Float);
Identifier(v:String);
TString(v:String);
Var;
Assign;
Division;
// and so on
}
I want to check if the value of a variable is an Identifier, but this doesn't work:
if(tk == Token.Identifier) {
It only allows me to compare the values i...
I've known about haxe for a while, but never really played with it until yesterday. Being curious, I decided to port showdown.js, a javascript port of markdown.pl, to haxe. This was pretty straightforward, and the javascript it generates seems to run fine (edit: If you want to see it in action, check it out here).
However, I noticed tha...
I'm working on a string-to-bool parsing function for HaXe (somehow the devs got by until now without one >.<) and i figured the best way to check the string would be ignoring case. I'm not sure how to do that though, can someone help me?
...
Background
I'm porting markdown to HaXe.
Problem
HaXe's PHP generator is either totally borked, or I've done something wrong. When I try to include the generated php file containing main(), I get an error like this:
Fatal error: Cannot redeclare _hx_add() (previously declared in /home/owner/Projects/mdown/build/php/lib/php/Boot.cl...
I might be missing something obvious, but how do I reference a property indirectly? E.g in javascript it would be:
if(propName in obj) return obj[propName];
How to say the same in haxe? The object in question is Dynamic<String>, flash.display.LoaderInfo.parameters to be specific.
Many thanks.
...
Hi, I have recently begun to develop a game in haXe which targets the Flash platform.
I can say that I'm not really used to Flash and how it works, it is really apparent that it was intended for animations. But anyway, now that game I'm making is starting to be that big that it takes a few seconds for it to load that I want to have a nic...
Hi,
I am currently digging into the whole Flash 3D stuff and I am quite unsure which engine I should use. I really prefer haXe for development but ActionScript 3 is also fine.
Therefore I would like to ask you about experiences you have made!
If you answer this question please consider the following points:
Easy to use? Easy to learn...