Questions tagged [openfl]

For questions relating to the OpenFL software development kit.

OpenFL is a free and open-source software framework and platform for the creation of multi-platform applications and video games.

OpenFL projects are written in the programming language, and may be published as standalone applications for Adobe AIR, Microsoft Windows, macOS, Linux, iOS and Android, or to the web using Adobe Flash and HTML5.

275 questions
22
votes
2 answers

Haxe / OpenFL / Flixel

I've been looking through the sites of Haxe / OpenFL / Flixel but am struggling to understand what each one is for. As I understand it: Haxe is a language that can be deployed to multiple platforms. OpenFL is something to do with Flash. Flixel is a…
panthro
  • 22,779
  • 66
  • 183
  • 324
7
votes
1 answer

How to exit Haxe/OpenFL program?

I am making a game using Haxe, OpenFL (Formerly NME) and HaxeFlixel. However, problem is, I can't seem to find a good way to make a Flixel button that will shutdown the game when pressed. I was planning to make a "quit" button on the main menu. Is…
Mandemon
  • 372
  • 3
  • 22
6
votes
1 answer

How do I get openfl running in the ios simulator

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 -simulator I get the following…
mattwallace
  • 4,132
  • 6
  • 43
  • 77
6
votes
1 answer

OpenFL and Lime does not run, because of a segmentation fault

Recently, I have found (on Mac OS X Mavericks) OpenFL and LIME (with the command line tools) not working due to a 'segmentation fault'. Before I get into the details, here's some background. I originally got Haxe + Neko from the installer provided…
hpm
  • 1,202
  • 13
  • 34
6
votes
3 answers

Wait() in Haxe?

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, which stops the script until the number of seconds…
IBPX
  • 681
  • 1
  • 6
  • 11
5
votes
1 answer

Gaps appear inside the sprites from SWF

I'm using Adobe Animate to draw assets for my game, however, small gaps appear between different parts of the sprite. How to fix it? Comparison between how it appears in Adobe Animate and how it appears in game:
Gulvan
  • 305
  • 2
  • 12
5
votes
1 answer

unable to get php server response into html5 OpenFL haxe app

I have a json string being printed using Lib.print(string); in haxe/php and am hosting that on my localhost I've checked http://localhost/index.php, and it does indeed print the json object as text. My HTML5 app has the following code in it var h =…
John Doughty
  • 246
  • 1
  • 5
5
votes
2 answers

Using SWF animation in Haxe/OpenFL applications

As great as Haxe got with NME/OpenFL the big problem transitioning from AS3 development are assets. As much as Haxe is similar to as3 and OpenFL tries to provide a familiar API the lack of SWF support scares away many developers. My research on this…
Creative Magic
  • 3,143
  • 3
  • 28
  • 47
4
votes
1 answer

Call method in object passed to C++ from Haxe

I'm creating an OpenFL extension for a mobile advertising SDK, and I'm having difficulty figuring out some CFFI stuff. Basically, I'm trying to pass a Haxe object to C++, and then call a method on that object from C++. The purpose of this is as an…
AlexRamallo
  • 637
  • 1
  • 5
  • 23
4
votes
1 answer

Is there a programmatic way to change vsync at runtime in Haxe/Starling?

I see a way to do so through project.xml but I'm not seeing a way to disable/enable vsync at runtime (like for example having an option in a settings menu or something). Searching hasn't given me any answers. :(
tson
  • 43
  • 2
4
votes
1 answer

HaxeFlixel: Overlaying Graphics into Single Sprite

I have code to generate a player avatar spritesheet by pulling each individual body/clothing item and overlaying it in a particular order. Essentially, I'm trying to combine the clothing sheets into a single body by laying them over each other. But…
Fuselight
  • 554
  • 6
  • 17
4
votes
1 answer

Error compiling android with Lime/OpenFL. Unable to get Java version (Windows 10)

I get this at the end of my build: Unzipping C:\Users\jdoughty\.gradle\wrapper\dists\gradle-2.10-bin\2v0chm5oshw52qn5d7jjz7lo0\gradle-2.10-bin.zip to C:\Users\jdoughty\.gradle\wrapper\dists\gradle-2.10-bin\2v0chm5oshw52qn5d7jjz7lo0 FAILURE: Build…
John Doughty
  • 246
  • 1
  • 5
4
votes
1 answer

Haxe+OpenFL->Neko, MouseEvent.xxxKey always false

I am making a game using Haxe+OpenFL. I had targeted js once ago, then I switched to neko and the following construction stopped working: if(e.shiftKey) do smth Ofc I've not changed this block of code, nor context since changing the target. What…
Gulvan
  • 305
  • 2
  • 12
4
votes
1 answer

Haxe + real-time network

i try to find a good combination of libraries for managing a real-time communication (client/server) using Haxe (only Haxe, not openfl or other framework base on Haxe) targeting flash (swf) for the client and no preference for the server except…
yansucc
  • 43
  • 6
4
votes
1 answer

How to check which button was pressed when using the same callback or event listener for all of them

I have a custom class for menu buttons. In the main, I create objects of this button, and use them in functions. Ultimately I want to have: when I click on button 1, display text 1; click button 2, display text 2, etc... Here are code examples for…
Soul Bruteflow
  • 115
  • 2
  • 8
1
2 3
18 19