Tool which enables developers to share their code and libraries into a common repository.
Questions tagged [haxelib]
67 questions
1
vote
1 answer
InCorrect Path for Rest client in Haxe
I am a newbie to Haxe. I created the below code:
import restclient.RestClient;
/**
* ...
* @author Sriram
*/
class HaxeTest
{
static public function main() {
trace("Hello, world!");
var result = RestClient.get(
…

Sriram
- 155
- 12
1
vote
1 answer
convert Javascript to Haxe using refactor
I want to convert a javascript class to Haxe. (Which is Nakama Backend JS Client, nakama-js.umd.js)
in order to do that, I've tried to use refactor tool. which is a haxelib tool
after installing refactor, I've executed the following command:
haxelib…

ArmanBM
- 33
- 7
1
vote
1 answer
Missing Return and Float should be Int
I have the codeblock like this and I am trying to get rid of the Float should be Int and Missing Return errors.
package com.bykd.dev;
@:final class Version
{
public static inline var SPLIT_CHAR : String = ".";
…

Ali Mammadov
- 65
- 7
1
vote
0 answers
Error: Void -> Int should be Float For function argument 'num'
Trying to fix this error as I mentioned in title but cant figure it out. I am not comparing anything why I get this I don't know. I tried to change strings to float but no success. Maybe I should change StringTools but not sure what use instead of…

Ali Mammadov
- 65
- 7
1
vote
1 answer
Scaling a kha-app for retina on iPad
I have a kha app that runs perfecly on an iPad2 (1024/768px).
When I run the same project on a later iPad Mini with 2048/1516. My coordinates are all half the size, which kinda makes sense.
So when I double all the sizes of my objects and GFX it…

RedRoosterMobile
- 786
- 10
- 21
1
vote
2 answers
Storing objects in array (Haxe)
How would I go about sorting an new instance of an object into an array in Haxe?
For example I have a class called weapon and in the player class I gave an array inventory.
So how would I store this?
private void gun:Weapon
gun = new Weapon;…

Randomizer4582
- 31
- 3
1
vote
3 answers
Finish Setting Up For Android?
So I am trying to install and setup to be an Android develop following this helpful video:
https://www.youtube.com/watch?v=VLUDui3VuGk
I got a few easily fixable errors then I got this one:
arm-linux-androideabi-g++: error:…

xhunterko
- 49
- 7
1
vote
1 answer
How to cross compile Haxe/OpenFL generated source code using minGW?
I have got a CPP source files generated by OpenFL/Haxe for Linux (Fedora 21 x86_64).
I would like to attempt to cross-compile this to Windows executable using mingw-64 but does not know how to generate the proper Makefile for this as there where…

Jones G
- 301
- 5
- 17
1
vote
1 answer
haxe cannot find csv library installed by haxelib
EDIT: Leaving this up because other people are bound to have the same issue, but the root cause was that the ubuntu package was a very old version of haxe. I uninstalled that and installed from source instead, and everything just works
I have…

Martin DeMello
- 11,876
- 7
- 49
- 64
1
vote
1 answer
Switch-case in haxe
I have a problem with my haxe code, So I have the following code :
var t : String = switch( id ) {
case 1 : Std.random( 2 ) == 0 ? Texts.list.0 : Texts.list.1;
case 2 : Std.random( 2 ) == 0 ? Texts.list.2 : Texts.list.3;
…

TanGio
- 766
- 2
- 12
- 34
1
vote
1 answer
Haxe add own Modules to path
I created some Modules from .Net dlls using cslibgen. Now I want to be able to use these modules in my haxe projects by using the import statement.
For testing I used cslibgen on mscorlib.dll (to be able to use the system.Console class). Of course,…

Fallere
- 601
- 4
- 8
1
vote
0 answers
Install haxe and neko.dll
I tried to execute haxe.exe but I get an error : "The program can't start because the neko.dll is missing from your computer." I look in the Environement Variables and there the path for NEKO is corect. I installed version 2.9 of haxe, I tried to…

TanGio
- 766
- 2
- 12
- 34
1
vote
1 answer
two haxe versions on same linux machine
Is it possible to have haxe2 and haxe3 installed and usable at once on same linux machine? I'm trying to setup a CC server.
I have an awkward solution with symlinks: have a symlink in /usr/lib that points to haxe installation I want to use and…

clorz
- 1,103
- 3
- 14
- 30
1
vote
2 answers
Cannot import library on Haxe & FlashDevelop
I added some classes through http://lib.haxe.org/ and git with the correct command (haxelib install x) and, while the classes are in the haxe/lib folder, I can't access most of them. Sometimes I'm able to import a library(I get the autocomplete and…

Javier Bullrich
- 389
- 1
- 5
- 22
1
vote
2 answers
Unable to install Lime (HaxeFlixel)
I'm installing HaxeFlixel by the Getting Started guide (http://haxeflixel.com/documentation/getting-started/).
When I type haxelib install lime, it return:
You already have lime version 1.0.1 installed
[file_contents,C:\Program…

phqb
- 351
- 3
- 14