JavaScript Event Listeners

JavaScript Event Listeners

Event Listeners are a core part of using JavaScript in the browser and in some cases the server. So, what is an Event Listener? What Is An Event Listener? An event listener is a JavaScript function that listens to when a specified event is emitted/occurs on a webpage;...
HaxeFlixel: How To Lock Your UI

HaxeFlixel: How To Lock Your UI

HaxeFlixel is a great engine used for making 2D cross-platform games. Each engine has its own way of doing things. So, how is the UI position handled in Flixel? Have you ever run into an issue where your game UI moves out of place in Flixel? There is a simple fix for...
How To Change Output Names In Haxe

How To Change Output Names In Haxe

Have you ever had an issue where the name of your class doesn’t match up with the output in Haxe? I know I have, and there is a simple fix for this issue, which will help you when creating libraries, APIs, and bindings to other libraries in separate languages....
Haxe: What Are Anonymous Structures?

Haxe: What Are Anonymous Structures?

In Haxe, anonymous structures are similar to objects in JavaScript. You use them when you need to create an object quickly. They are lightweight objects that still respect the Haxe type system. Here’s an example: var myObj = { name: 'Timothy', health: 3...
Haxe Conditional Compilation Saves The Day

Haxe Conditional Compilation Saves The Day

Hey everyone, here we are again with a new post on Haxe. This one is a follow-up on the previous post. This one concerns conditional compilation. Now, let’s get into the specifics and how it works. For more information on conditional compilation, you can find it...
Haxe Build Files & Compilation

Haxe Build Files & Compilation

In Haxe, there is a thing known as a build file. This file is often used in your project for autocomplete/IntelliSense (this is when suggestions come up in your code as you type) and to determine what/how your code should be compiled in Haxe. This is the best way to...