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

Strange rendering behavior with transparent texture in WebGL

I've been writing a little planet generator using Haxe + Away3D, and deploying to HTML5/WebGL. But I'm having a strange issue when rendering my clouds. I have the planet mesh, and then the clouds mesh slightly bigger in the same position. I'm using…
Shadda
  • 103
  • 7
3
votes
1 answer

OpenFL take input from device gyroscope

Okay, so I am working on a mobile app in OpenFL and Haxe. I would like to gather input from the gyroscope, or more specifically about the orientation of the phone. I have searched the openfl docs, and google for some kind of documentation or…
3
votes
1 answer

Where to put drawable resources for an OpenFL android extension?

I am making an android extension for my OpenFL app, which is supposed to show a notification, when I call a function from Haxe. I need to put a drawable icon in my extension project, because a notification requires an icon. However, the Java file…
Zeeshan Ahmad
  • 345
  • 3
  • 17
3
votes
1 answer

Can I debug Javascript from FlashDevelop?

I'm developing for a JS target in Haxe using FlashDevelop. I would like to be able from inside the IDE, in the same way I debug a Flash target, with the breakpoints, callstack, variable list, all showing up in the IDE. I currently use source maps…
Craig
  • 459
  • 4
  • 10
3
votes
1 answer

Is it possible to mix OpenFL with NME?

OpenFL is great, but the latest version of NME supports StageVideo. So is it possible to build a project with OpenFL and include some NME libraries to be able use StageVideo?
Pier
  • 10,298
  • 17
  • 67
  • 113
3
votes
1 answer

Save BitmapData/ByteArray as a PNG file

I'm trying to save generated graphics as PNG files, but I'm stuck at actually saving the data as a file. My steps are following: Make a graphics objects Convert the graphics to a BitmapData via the draw() method Encode the BitmapData object to get…
Creative Magic
  • 3,143
  • 3
  • 28
  • 47
3
votes
4 answers

Managing different mobile screen sizes - Haxe, OpenFL

What is the best way to approach the variety of screen ratios of android mobiles? Currently, I use EXACT_FIT, which forces (stretches) the app to the target screen. But how do I dynamically re-size my content to the screen ratio, so the content…
Zeeshan Ahmad
  • 345
  • 3
  • 17
3
votes
2 answers

Haxepunk: using google play services

I'm using HaxePunk and feel satisfied about it, except one little thing. How can I use achievements, in-game purchasements fro, google play? Is there any lib for OpenFL or HaxePunk? I've found only a lib on github, but seems like it is only for…
Sx107
  • 31
  • 1
3
votes
1 answer

How to integrate InApp purchase & native SDK for iOS with Haxe

I'm trying to integrate InApp purchase & a native SDK provided by our publisher into a game made with Haxe & NME. I'm still using NME 3.5.5 & hxcpp 2.10. I tried to use Native Extension as described here :…
3
votes
1 answer

How to write into XML file in Haxe?

I am using Haxe and OpenFL and I got a program that generates a Xml file. However, I can't figure out how to save that file. I can create Xml tree and check it's valid, but for my life I can't figure out how to write the file. So, in simple, how to…
Mandemon
  • 372
  • 3
  • 22
2
votes
1 answer

Compiling a Haxe Flash application to Adobe AIR using OpenFL

I am doing support for a company that has a business app written in haxe that compiles to Flash swf. The application is a layout generator that loads a list of items that can then be dragged onto the layout. The list of items are loaded from a PHP…
BruceHill
  • 6,954
  • 8
  • 62
  • 114
2
votes
1 answer

How to get access to sprite 2D context?

Is it possible to get the CanvasRenderingContext2D at a sprite level instead of the whole canvas? Has anyone tried to have access for it? any idea? I tried: child.addEventListener(RenderEvent.RENDER_CANVAS, function(event) { var…
simo
  • 23,342
  • 38
  • 121
  • 218
2
votes
1 answer

Haxe + Openfl doesnt working Type not found : HelloWorld

I have just installed haxelib + openfl and i'm just creating a new project called helloworld and i get this error when i try to run it: cmd: "C:\HaxeToolkit\haxe/haxelib" run lime build "project.xml" html5 -debug…
Sheepssj
  • 31
  • 1
2
votes
1 answer

Error compiling Android with Lime (Windows 10)

I'm porting a working windows application to android. I've: run haxelib run lime setup android set sdk location to be C:\Users\username\AppData\Local\Android\Sdk set ndk location to be C:\Users\username\AppData\Local\Android\Sdk\ndk-bundle set…
John Doughty
  • 246
  • 1
  • 5
2
votes
1 answer

How to disable the special character menu for haxe game

I'm working on a game written using haxeflixel and, on mac, whenever you hold down certain keys (A, for instance) a menu pops up at the top of the game window. Is there any way to disable this menu inside my application only?
davey555
  • 720
  • 1
  • 7
  • 15
1 2
3
18 19