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
0
votes
1 answer

Sprite text at incorrect position

I'd like to add text to a working button. Currently, the code below prints the text at 0,0 rather than on the sprite button. soundButton.graphics.beginFill(0xFFCC00); soundButton.graphics.drawRect(0,900, 200, 50); …
Jocala
  • 243
  • 1
  • 4
  • 16
0
votes
1 answer

Where is my button?

I'm new to haxe/openfl and am trying to simply put a button on a screen. The code below gives me a white screen, no button or reaction to a screen press via trace. Can someone tell me what I'm doing wrong? package; import…
Jocala
  • 243
  • 1
  • 4
  • 16
0
votes
1 answer

Flash IDE, Haxe & OpenFL - Invalid Data Swf Error #2136

We've recently run into a show stopping issue and can't seem to find any one else on the net who has the same problem (although there have been similar ones). We're currently developing a game using Haxe and OpenFL. We use FlashDevelop to code the…
SHiLLySiT
  • 153
  • 1
  • 13
0
votes
1 answer

Center in relative layout, JAVA (for admob haxe openfl native extension)

There was no option for centering a AdMob ad so i added the last bit of code, is this code correct? My compiler throws no error and the ad does not move to the center. I cannot find any information about relative layout in reference to centering. …
jjwallace
  • 168
  • 2
  • 16
0
votes
1 answer

OpenFL basic install on Windows doesn't work?

I went to http://www.openfl.org/archive/download/ and followed the steps for a really basic first test: haxelib install lime haxelib run lime setup lime install openfl lime create openfl:DisplayingABitmap When I try to run it with: cd…
Soulfire
  • 161
  • 3
0
votes
1 answer

How to convert Bitmapdata to Base64 format?

Is there any example which helps in generating Base64 based image from Bitmapdata? I know I have to use encode in bitmapdata, but I am not sure how to use it? It takes (rect : flash.geom.Rectangle, compressor : flash.utils.Object, ?byteArray :…
simo
  • 23,342
  • 38
  • 121
  • 218
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

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
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
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
0
votes
1 answer

Does the performance of OpenFL Android applications differ based on what language was used to code it in

I am under the impression that you can code OpenFL in Haxe, AS3, and JavaScript. And if I want to use OpenFL for making Android apps with JavaScript... will the performance be worse or it does not matter? http://www.openfl.org/ I very much inclined…
Muhammad Umer
  • 17,263
  • 19
  • 97
  • 168
0
votes
2 answers

Haxe/OpenFL in FlashBuilder/Eclipse?

I am looking for a possible solution of developing Haxe/OpenFL applications on a Mac. While Windows has a very good IDE, the Macs are left much weaker support. I tried every IDE I could find for mac that has a Haxe plug-in, but they often lack basic…
Creative Magic
  • 3,143
  • 3
  • 28
  • 47
0
votes
1 answer

Again, Class not found

When I have upgraded stablexui to the last version, I first removed it: haxelib remove stablexui then installed the last version: haxelib install stablexui then, when I try to compile, I get this error: src/com/clientside/Icon.hx:3: characters…
simo
  • 23,342
  • 38
  • 121
  • 218
1 2 3
18
19