Questions tagged [haxe]

Haxe can build cross-platform applications targeting JavaScript, C++, C#, Java, JVM, Python, Lua, PHP, Flash, and allows access to each platform's native capabilities. Haxe has its own VMs (HashLink and NekoVM) but can also run in interpreted mode. Code written in Haxe can be compiled to any target Haxe supports.

Haxe is an open source, multiplatform programming language that allows developers to JavaScript, C++, C#, Java, JVM, Python, Lua, PHP, Flash, NekoVM and HashLink using the same syntax.

Haxe includes a set of common functionality that is supported across all platforms, such as numeric data types, text, arrays, binary and some common file formats. Haxe also includes platform-specific APIs. It can be integrated with existing libraries using extern definitions (e.g: JavaScript) or leveraging the compiler to connect directly to native libraries (e.g: .jar for Java and .dll for C#).

Haxe can also compile to bytecode (Neko, HashLink or JVM), which runs in the runtime created by the same developer.

Haxe is a garbage-collected language. Some target platforms do not have a native garbage collector - in those cases Haxe provides its own runtime, like in the case of C++, to take care of GC and other things.

Haxe ships with its own package manager called .

Haxe was developed by Nicolas Cannasse and other contributors and is backed by the Haxe Foundation. It was named Haxe because it was short, simple, and "has an X inside", which the author humorously asserts is necessary to make any new technology a success. Haxe is pronounced "hex" /heks/, although many community members pronounce it "hacks".

Haxe is known for its multitude of game development and multimedia libraries. With frameworks like , or built on top of Haxe, developers can target platforms like:

All from a single code base.

Popular game engines include , , and . The powerful physics engine is written in Haxe as well.

With UI frameworks like and , user interfaces can be created for a wide range of target platforms. With , there is also a feature-rich MVC web framework available. To create reactive web applications using a virtual DOM, coconut.ui can be used, which shares significant similarities with .

1627 questions
0
votes
1 answer

haxe abstract code not working for neko

The following code compiles to Javascript and runs OK, http://try.haxe.org/#8C940 abstract Comparable(Dynamic) from Float from String { @:op(a(t:T,…
thor
  • 21,418
  • 31
  • 87
  • 173
0
votes
1 answer

Haxe, OpenFL android debug giving error in for cpp

I'm developing an app in FlashDevelop, using Haxe and OpenFl When I test my app in flash target, it works fine. But when I compile for android, it comes up with this error during the compilation: ./src/ReaderView2.cpp: In member function 'virtual…
Zeeshan Ahmad
  • 345
  • 3
  • 17
0
votes
2 answers

Haxe JavaScript HTML form

In the "Try Haxe" (http://try.haxe.org) site, the default sample test code is as follows: class Test { static function main(){ #if js new js.JQuery("body").html("Haxe is great :)"); #elseif flash trace("Haxe is great :)"); …
0
votes
2 answers

haxe -xml command line example

I want to go through all of my haxe classes and generate xml from the comments. I see there is a built-in haxe command: haxe -xml However I don't know how to use it for my situation. I want to go through all of the haxe classes in my directory…
user1261710
  • 2,539
  • 5
  • 41
  • 72
0
votes
1 answer

Using Haxedoc to generate documentation for my project

I wrote my html5 game api with haxe and now I want to auto-generate the documentation from the comments in the code. However, I have no idea how to even get started on this. I want to try to use haxedoc but the only documentation I have is on this…
user1261710
  • 2,539
  • 5
  • 41
  • 72
0
votes
1 answer

Extra long frame times in openfl/flash

I'm building a library in haxe/openfl to make games, and I've noticed some jerking in the movement of sprites, especially when running on android or flash set to debug, and after using trace(elapsed) on my code I noticed that there are spikes every…
Nico
  • 94
  • 9
0
votes
2 answers

Drawing with depth to a bitmap

Lately I have been using haxe and openfl to (attempt) to make games, I'm coming from previous knowledge with XNA, where, when drawing with a spritebatch, you can specify a depth to draw the image, independent of when you actually call the draw…
Nico
  • 94
  • 9
0
votes
1 answer

How to embed an image in windows target?

I tried to add embed = true in project xml like this: But if I try to delete an image from assets folder, then run the exe file, the image will not be displayed,…
simo
  • 23,342
  • 38
  • 121
  • 218
0
votes
0 answers

Generated swf does not work on server

When I compile my project to flash target, every thing is fine, if I double click the resulted swf file, it will open with local flash player properly. But, when I try to host the swf file on xampp, and load it via html file at…
simo
  • 23,342
  • 38
  • 121
  • 218
0
votes
2 answers

Why is this label not showing in HaxePunk?

I'm starting to learn HaxePunk, and I've gone through the basic tutorials on their website. So now I was trying to find out how to add a label of some sort onto the screen. I noticed that what appears to be their only out-of-the-box class named…
Panzercrisis
  • 4,590
  • 6
  • 46
  • 85
0
votes
1 answer

Only one neko file

I'm trying to call an URL (e.g : http://localhost:2000/index.n/test), but the server will try to find test.n like that, and I would like to go in index.n file and get index.n/test as request's path. How could I do that please ? (I'm using Haxe) (in…
Peekmo
  • 2,843
  • 2
  • 19
  • 25
0
votes
1 answer

How do you clear this error with using HaxePunk in FlashDevelop?

I have tried researching this and using pre-made templates, but to no avail. I just want to get a real basic HaxePunk project working with FlashDevelop, with making Flash games in mind. Going back to real basic tutorials and such, this is my…
Panzercrisis
  • 4,590
  • 6
  • 46
  • 85
0
votes
3 answers

Meal.hx:1: characters 0-7 is missing ;

Hello im trying to compile my simple code of haxe , and it still an error with Meal.hx:1: characters 0-7 is missing ; i dont know where the error is, here's the code: Meal.hx package MyFridge; class Meal { public var name : String; public function…
Koyix
  • 181
  • 1
  • 3
  • 17
0
votes
1 answer

Flash socket security policy (local+remote socket access)

I want to setup a Client(flash)-Server(neko) socket connection to be possible: On localhost - for local testing Internet swf(kongregate) to my server - for production/beta testing I read a lot about policy here and on google and become confused a…
roma
  • 1,512
  • 10
  • 20
0
votes
2 answers

Main app stop responding to events after UIViewController ends

i'm simply trying to show the camera or photo library so the user can select an image and return to the app. I could finally do it, but the problem that i'm facing, is that when the UIViewController ends (why the user selected an image or why the…
shadow_of__soul
  • 429
  • 1
  • 8
  • 19
1 2 3
99
100