haxe Questions
3
Solved
First I am super new to Haxe, so I am asking super noob question here, and I have 2 of them.
1) My first question is I know Haxe compiler can convert from Haxe to any other language (supported) bu...
1
Solved
I've got a Haxe Application that I want to make available to people with a Windows system. I use Hashlink to run the Application locally and it works very nicely.
I am wondering if I'm supposed t...
0
The @:op(a.b) feature is described here: https://haxe.io/releases/3.3.0/
I have May<T> abstract which is used for null safety. Here is the simplified version of it:
package;
import haxe.macr...
Evade asked 17/2, 2017 at 11:50
1
Solved
I started experimenting with kha on haxe, and compiled a sample project for my aged iPad2.
Now I wonder how to display the actual framerate on screen.
As a starting point I found this repo:
http...
1
Solved
I have the latest version of Haxe 3 installed along with the latest version of Xcode and OpenFL.
I'm inside my OpenFl project in the terminal and I run the following command:
openfl test ios -sim...
1
Solved
Most guides surrounding the use of sockets with the Haxe toolkit rely on the use of threads, which are platform-specific. This is because sockets block by default, which makes them unsuitable for m...
Lizarraga asked 2/9, 2016 at 12:31
1
Solved
Is it possible to apply my type building macro to all classes in a project without modifying their code?
I'm trying to implement a debugger based on Haxe macros: basically I inject calls to my fun...
2
Solved
I recently tried to develop in haxe/lime and I have two things that freaked me out.
1. I tried to install Lime by this command:
> haxelib install lime
haxelib run lime setup
and it automatic...
3
Solved
Unlike this guy, I'm using MTASC's Haxe to compile SWF from AS. Considering I don't have Adobe CS, what are our options to extract the action scripts from any FLA file?
I mean different versions, ...
Dissuasion asked 6/4, 2011 at 6:32
3
Solved
I noticed that Arrays perform much, much faster than Haxe's Linked Lists (atleast on cpp). The results I got are as follows.
Main.hx:40: With 1 items, Array is 14% faster than List.
Main.hx:40: Wi...
Wallywalnut asked 29/4, 2016 at 13:4
1
Solved
I've been playing around with Neko Modules, but I think I'm getting some inconsistent behaviour.
var funcs = 0;
var objs = 0;
for (i in 0...m.globalsCount())
{
var obj:Dynamic = m.getGlobal(i);
...
3
Solved
I've looked all over the Haxe Flash Command-line compiler website but was unable to find any detailed documentation of the HXML files (scroll down to the "Changing SWF properties" section) which de...
Janessa asked 10/1, 2009 at 3:48
1
Solved
I want to make some common service calls, data models, etc, to use as a library on my iOS and Android apps, I was thinking that maybe Haxe is capable of doing this but I can't find any example. Can...
4
I have a web app that contains a huge amount of generated JavaScript. The memory consumption differs by a factor 6 between running the web app in Chrome on a Desktop compared to running the web app...
Scrutable asked 19/8, 2015 at 14:23
3
Solved
(I'm using the dev branch of HaxeFlixel)
To create a new FlxPoint variable I can do one of three things...
var pt:FlxPoint = new FlxPoint();
var pt:FlxPoint = FlxPoint.weak();
var pt:FlxPoint = F...
Broca asked 23/1, 2016 at 21:5
3
Solved
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 va...
Marvismarwin asked 22/9, 2010 at 16:31
1
Solved
I am following a tutorial for HaxeFlixel which uses the Haxe language. Now I do not have any experience in Haxe, but I decided to brave the tutorial since I do have experience in Java and Haxe as a...
Dna asked 22/11, 2015 at 20:0
2
Solved
I'd like to dynamically add some new Types to a given Module based on some files found in a directory.
I'm essentially trying to populate a bunch of @:file(...) embed classes at the bottom of a Mo...
1
Solved
Take this code:
function createGUIHud():Void
{
this.screen.gameHud = new NormalGameHud(10, 0, this.screen.getTextureAtlas());
this.screen.gameHud.x = FlxG.width - (this.screen.gameHud.width + Ga...
Mcdowell asked 30/9, 2015 at 20:25
0
I have been using vim for a while now and decided to try Emacs. I picked Spacemacs since it's easier for a vim user to transition to.
I was able to create a package layer to install packages hoste...
3
Solved
I want to create a macro that generates this code for me:
if (myEntity.get(Attack) == null) myEntity.add(new Attack());
if (myEntity.get(Confused) == null) myEntity.add(new Confused());
if (myEnti...
2
Solved
What is the difference between these two function signatures?
function f(?i:Int = 0) {}
function f(i:Int = 0) {}
It doesn't seem to make any difference whether argument is prefixed with ?, both ...
Lyte asked 10/8, 2015 at 8:10
3
Solved
I am getting started with Haxe and OpenFl, and have some experience with Javascript and Lua.
It was going pretty well, till I got to a point where I needed a function similar to wait() in Lua, etc,...
2
Solved
I use Haxe targeting Javascript.
I have a package (defined as an extern), "phaser", that contains a Math class along with many others.
I use import phaser.*; at the beginning of my files because I...
Termite asked 4/7, 2015 at 15:20
2
Solved
I was just looking at the Change Log for Haxe 3.2.0-rc.2 and found this at the end of New features list:
cpp : inititial implementation of cppia scripting
Can anyone can tell me what this means?...
© 2022 - 2024 — McMap. All rights reserved.