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
2 answers

dispatch custom event don't work in haxe

i have a weird problem... i try to build a button that onClick doing something(i dont use in regular event because i need to transfer a data with the event). i built a UIButon class and create an instance of him in the parent class. i create a…
Michael
  • 896
  • 10
  • 28
0
votes
2 answers

Efficiently XOR two images in Flash compile target

I need to XOR two BitmapData objects together. I'm writing in Haxe, using the flash.* libraries and the AS3 compile target. I've investigated HxSL and PixelBender, and neither one seems to have a bitwise XOR operator, nor do they have any other…
Dewi Morgan
  • 1,143
  • 20
  • 31
0
votes
1 answer

Defining multiple variables using XML values in Haxe

I am trying to write a code in in Haxe in a program called Stencyl. I am trying to take all of the date in a return XML response from a web server and assign variables to them. I have gotten the basic XML response and was able to use the Fast XML…
Seth Haberman
  • 131
  • 1
  • 13
0
votes
1 answer

Flashdevelop - class not found

I struggled a problem : In flashdevelop in source folder I created folder named Sprites and class Player.hx in it. like this : package Sprites; class Player { public function new() { } } Now i want to create instance in…
Bob T.
  • 261
  • 1
  • 13
0
votes
1 answer

How to include jar lib in android extension?

I am building an extension that will use a jar file, I tried to include the jar files in the include.xml file like this: But when I put the import in the…
simo
  • 23,342
  • 38
  • 121
  • 218
0
votes
1 answer

Flash player API for browser extension

let's say we have a P2P multi-player Flash based game hosted on a website. Would it be possible to create a browser extension that would listen to what is going on within the Flash application? For example, I would like to know when a player…
0
votes
2 answers

Haxe construct to mimic PHP list() = each() in Haxe 2.10

You probably know this construct in some languages, like in PHP and Perl: var $a = ["Apple", "Banana", "Pear", "Orange"]; list($p1, $p2, $p3, $p4) = each($a); echo $p1; // Apple echo $p2; // Banana echo $p3; // Pear echo $p4; // Orange It is…
the_yellow_logo
  • 675
  • 5
  • 13
0
votes
1 answer

Compiling Haxe targeting as3 using hxml, can't add path to subfolders

i'm writing a game on Haxe targeting as3 flash palyer 11.1, and i've recently encountered a problem. I am using FlashDevelop as IDE and i can compile my game without any issues, but i wanted to add preloader. For that purpose i decided to use .hxml…
Variecs
  • 1
  • 2
0
votes
1 answer

Haxe application exits when deployed to windows

I am making a game engine in haxe/openfl. so far it's just supposed to display the image that belongs to the thing object. what I have built so far runs perfectly on when deployed as a flash application, but closes instantly when I deploy it as a…
0
votes
1 answer

"Bus error: 10" when running haxedoc

When running haxedoc, either from Haxe 2.08 or from Haxe 2.10, I get $ haxe-2.10/haxedoc -h Bus error: 10 Haxe 2.08 is the binary and my Haxe 2.10 was compiled with OCaml. I suppose my Mac is using some incorrect library, causing the problem. If I…
the_yellow_logo
  • 675
  • 5
  • 13
0
votes
1 answer

How to use haxe macro in FlashDevelop?

I am interested in adding build number in the About dialog, I read about haxe macros which would generate content at compile time .. But, how would I use it to simply add auto increased build number? I am not sure where to start or read about this…
simo
  • 23,342
  • 38
  • 121
  • 218
0
votes
1 answer

OpenFL - Android/iOS local notifications

Developing an app in OpenFL (in Haxe), I would like to leave notifications in the status bar of Android and iOS devices at certain times. Could someone advise me on the best way to achieve this?
Zeeshan Ahmad
  • 345
  • 3
  • 17
0
votes
1 answer

EaselJS object inspector

I am converting an existing code base from using Flash to using CreateJS but I am in need of a way to stop the Stage update and inspect the EaselJS GUI elements for debugging. My list of requirements for the debugger is It must be possible to stop…
jpsecher
  • 4,461
  • 2
  • 33
  • 42
0
votes
3 answers

Haxe SDK missing in FDT on OSX

I have downloaded the latest (free) FDT and when I try to create new Haxe project I am asked to specify the Haxe SDK installation path but this is nowhere to find. It is not in the FDT5 content folder as this post suggests, there is simply no HAXE…
daniel.sedlacek
  • 8,129
  • 9
  • 46
  • 77
0
votes
1 answer

How to use native Json with Flash?

Not sure if this is a Haxe or a Flash question. I'm using Haxe 2.10. I'd like to use the haxe.Json class. For this it seems I need to compile for Flash Player 11, at least. Otherwise JSON is not found on execution time and I get an exception. So I…
the_yellow_logo
  • 675
  • 5
  • 13