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
4
votes
0 answers

OpenFL video targeting HTML5 is not working on chrome-mobile

I'm using openfl.media.Video to display an MP4 file on HTML5 targets. It works great on all desktop browsers and even on firefox-mobile. The only issue is that it's not working on chrome-mobile(v.41.0.2272.96) and opera-mobile (iOS7.1.2). On Chrome…
Scianid
  • 143
  • 9
4
votes
1 answer

Create Transparent Windows in Haxe (Neko or Windows targets)

Im trying to make a simple OSX-like dock application using Haxe 3.1.3. I cant seem to work out how to make the main application window transparent (no titlebars, borders etc), as well as ignoring mouse events except on the icons themselves. Ideally…
Matthew
  • 952
  • 7
  • 20
4
votes
1 answer

How to learn Haxe as a JavaScript developer

I have been using JS for like 3 years. I want to use OpenFL for making mobile apps. However, I do not know Haxe. And I don't know other programming languages either. However, I am comfortable in learning classes, inheritance, etc.... Also, so far…
Muhammad Umer
  • 17,263
  • 19
  • 97
  • 168
4
votes
2 answers

Creating multiple instances of sprites in OpenFL?

I am loading my sprite images using SVG images so that they smoothly scale to match device resolutions. Currently I am naively rendering the SVG data for each sprite, but I would like to reduce memory overhead and improve performance by sharing the…
Lea Hayes
  • 62,536
  • 16
  • 62
  • 111
3
votes
1 answer

cacheAsBitmap forces MovieClip to vanish

I'm trying to get antialiasing on a MovieClip object after constructing it from a object and its mask, both MovieClips loaded from swf via SWFLite: var icon:MovieClip = Assets.getBattleAbility(ability.id); //getting a base object icon =…
Gulvan
  • 305
  • 2
  • 12
3
votes
2 answers

Why is my TextField so small on the screen when targeting Android?

Read that the default size should be 12px. Is this something about DPI? How to solve? EDIT Thank you folks, but this doesn't seams to be something related to the font size. It looks like its something about handling DPI because it happens with…
Leo Cavalcante
  • 2,327
  • 2
  • 22
  • 30
3
votes
2 answers

Suppress scientific notation in Haxe across targets

Is there a way to suppress scientific notation in Haxe? For example, if I have: var f:Float = 0.00007075; var s:String = Std.string(f); In targets such as html5, this outputs: 0.00007075 However, c++ targets output: 7.075e-05 Is there a way to…
Jason Sturges
  • 15,855
  • 14
  • 59
  • 80
3
votes
1 answer

How to "convert" a simple flash project to HTML5 using OpenFL

I have to "convert" some flash projects to HTML5/JS but I don't really know how I can do it :( This flash projects are little "activities" like this one : https://www.brainpop.com/artsandmusic/artconcepts/cameras/activity/#=standard I did some…
3
votes
1 answer

How do I access environment variables in an OpenFL project xml file

In an OpenFL project.xml file, how do you access environment variables, for example, to add a source path of $HOME/dev/haxe-js-kit There's lots of information on the project XML format from the OpenFL website, but it doesn't mention the above.
Jeff Ward
  • 16,563
  • 6
  • 48
  • 57
3
votes
1 answer

Why can't access loaded swf files?

I am embedding swf libraries, using swf 2.1.1 with openfl 3.3.9 but when android app starts…
simo
  • 23,342
  • 38
  • 121
  • 218
3
votes
1 answer

How to check the available free space in Haxe?

I don't find a way to check the free space available in a device using Haxe, Openfl, Lime or another library. I would like to avoid download data that will exceed the size recommended for an app in each device. What do you do to check that?
ccsakuweb
  • 789
  • 5
  • 17
3
votes
1 answer

Save app data on Android/iOS using Haxe/OpenFL

So, I've created a Haxe function (using the OpenFL library) that saves text and image data to the game's folder on desktop targets. A little while ago, however, I was notified in this thread that the function would not work on mobile targets. The…
ETHproductions
  • 499
  • 5
  • 19
3
votes
1 answer

Best solution to encode assets in HaxeFlixel

Im trying to find best solution to scramble or encode assets (especially images/textures) for a game written in HaxeFlixel. In the root of my project there is a folder assets/images, and that's where are all of my game textures are stored. If I…
Bob T.
  • 261
  • 1
  • 13
3
votes
2 answers

What exactly is lime, lime-tools, aether, etc

I understand the overall concept of the Haxe programming language and OpenFL, but I'm having a lot of trouble understanding the purpose of these various libraries and how they relate to each other and which ones are deprecated. I've read that…
c..
  • 1,044
  • 1
  • 9
  • 23
3
votes
1 answer

IntelliJ OpenFL Haxe run configuration fails with two empty error messages

Building from IntelliJ IDEA is giving me two empty error messages. Neither error message provides any description of the error, just an empty message stating: Error: However, the build appears to be successful. If I target Flash, under…
Jason Sturges
  • 15,855
  • 14
  • 59
  • 80
1
2
3
18 19